* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #09090b;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

.mobile-frame {
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;

    height: 100dvh;
    margin: 0 auto;
    background: #121214;
    position: relative;
    overflow: hidden;
    border-radius: 28px;

    border: 4px solid #7c7c7c;
    /* 테두리 두껍게 */
    box-shadow: 0 0 0 2px #2d2d35;
    /* 바깥 라인 */
}

.app-screen {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.app-screen.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-header {
    padding: 4px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f1f23;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #121214;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-left: 8px;
    color: #22d3ee;
}

.logo-red {
    font-size: 22px;
    margin-left: 6px;
    font-weight: 900;
    vertical-align: middle;
    color: #f43f5e;
}


.logo-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
}

.logo,
.logo-subtitle {
    white-space: nowrap;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.icon-btn {
    background-color: #18181b;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pulse-dot-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background-color: #ea580c;
    border-radius: 50%;
}

.scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 0;
}

#home-screen .scroll-content {
    padding: 12px 8px 6px;
}

.transaction-stats {
    padding: 0;
}

.stats-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 18px;
    padding: 2px 12px;

}

.live-tag {
    display: flex;
    align-items: center;
    gap: 2px;

}

.live-tag .label {
    font-size: 11px;
    font-weight: 700;
    color: #a1a1aa;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}

.main-metric {
    margin-top: 0px;
    display: flex;
    align-items: baseline;
}

.main-metric .main-amount {
    font-size: 28px !important;
    font-weight: 900;
    color: #ffffff;
}

.change-rate {
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    color: #ef4444;
}

.stats-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0px;
    padding-top: 2px;
    border-top: 1px solid #27272a;
}

.grid-box {
    display: flex;
    flex-direction: column;




}

.border-right {
    border-right: 1px solid #27272a;
}

.sub-label {
    font-size: 10px;
    color: #71717a;
    font-weight: 700;

}

.sub-val {
    font-size: 18px;
    font-weight: 700;
    color: #e4e4e7;
    margin-top: 4px;
}

.font-blue {
    color: #22d3ee !important;
}

.unit {
    font-size: 12px;
    color: #71717a;
}

.ticker-feed-section {
    padding: 0px;
}

.section-title {
    font-size: 11px;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 6px;
}

.ticker-container {
    display: flex;
    flex-direction: column;
    gap: 2px;

}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #18181b;
    border: 1px solid #2d2d35;
    border-radius: 10px;
    margin-bottom: 2px;
}

.ticker-row strong {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.ticker-row small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #c7ccd6;
    line-height: 1.4;
}

.badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
}

.badge-red {
    background-color: #451a03;
    color: #ef4444;
    border: 1px solid #7f1d1d;
}

.badge-darkred {
    background-color: #2d1010;
    color: #f59e0b;
    border: 1px solid #78350f;
}

.badge-blue {
    background-color: #06313a;
    color: #22d3ee;
    border: 1px solid #083344;
}

.badge-green {
    background-color: #064e3b;
    color: #22c55e;
    border: 1px solid #166534;
}

.badge-fail {
    background-color: #facc15;
    color: #713f12 !important;
    border: 1px solid #ca8a04;
}

.item-title {
    font-size: 13px;
    font-weight: 500;
    color: #e4e4e7;
}

.price {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.status-time {
    font-size: 11px;
    font-weight: 600;
    color: #f43f5e;
}

.category-section {
    margin-top: 2px;
    padding: 2px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.cat-btn {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 2px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.cat-name {
    font-size: 10px;
    font-weight: 700;
    color: #d4d4d8;
    margin-top: 0;
    line-height: 1.1;
}

.app-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #121214;
    border-top: 1px solid #1f1f23;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}


.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding-bottom: 8px;
}



.nav-item.active {
    color: #22d3ee;
}

.nav-label {
    font-size: 14px;
    font-weight: 800;
    margin-top: 3px;
}

.progress-bar-container {
    padding: 16px 20px;
    background-color: #18181b;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a1a1aa;
    margin-bottom: 6px;
}

.progress-track {
    width: 100%;
    height: 4px;
    background-color: #27272a;
    border-radius: 100px;
}

.progress-fill {
    height: 100%;
    background-color: #22d3ee;
    border-radius: 100px;
    transition: width 0.3s ease;
}

.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 4px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e4e4e7;
    margin-bottom: 6px;
}

.form-label.required::after {
    content: ' *';
    color: #f43f5e;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-chip {
    background-color: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 10px 14px;
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
}



.form-input {
    width: 100%;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    height: 44px;
}

#signup-screen .form-input {
    height: 32px;
    min-height: 29px;
}

#signup-screen {
    transform: translateX(5px);
}

.bottom-button-area {
    padding: 16px;
    background-color: #121214;
    border-top: 1px solid #1f1f23;
}

.submit-btn {
    width: 100%;
    background: #22d3ee;
    color: #09090b;
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.submit-btn:disabled {
    background: #3f3f46;
    color: #a1a1aa;
    cursor: not-allowed;
    box-shadow: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 13px;
    color: #a1a1aa;
    margin-bottom: 20px;
}

.modal-btn {
    width: 100%;
    background-color: #27272a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
}

.form-chip.active {
    background: #19d3ff;
    color: #000;
    border-color: #19d3ff;
}

.photo-preview {
    display: none;
    position: relative;
    margin-top: 12px;
    border: 1px solid #2d2d35;
    border-radius: 14px;
    overflow: hidden;
    background: #18181b;
}

.photo-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;

}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
}

#close-image {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.fab-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: calc(100% - 32px);
    height: 30px;

    margin: 8px auto 4px;

    background: #22d3ee;
    color: #09090b;

    border: none;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.fab-plus {
    margin-right: 4px;
}

.fab-text {
    color: #09090b;
    font-size: 14px;
    line-height: 1;
}

.deal-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 8px;
    color: #e4e4e7;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 700;
}

.deal-category {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.deal-size {
    color: #a1a1aa;
    margin-bottom: 2px;
}

.deal-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #27272a;
    padding-top: 6px;
}

.deal-footer small {
    display: block;
    color: #71717a;
    font-size: 12px;
}

.deal-footer strong {
    font-size: 16px;
    color: #22d3ee;
}

.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status.auction {
    background: #7f1d1d;
    color: #ef4444;
}

.status.success {
    background: #14532d;
    color: #22c55e;
}

.status.retry {
    background: #7f1d1d;
    color: #ef4444;
}

.status.fail {
    background: #facc15;
    color: #713f12;
}

.status.fail2 {
    background: #2563eb;
    color: #ffffff;
}

.deal-time {
    margin-top: 8px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 600;
}

.primary-btn {
    width: 100%;
    padding: 6px;
    margin-top: 24px;
    background: #22d3ee;
    color: #09090b;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: #3f3f46;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.secondary-btn {
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    background: #3a3a3a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


.ticker-thumb {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.ticker-info {
    flex: 1;
    min-width: 0;
}

.ticker-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.ticker-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
    color: #b3b3b3;
}

body::before {

    position: fixed;
    top: 0;
    right: 0;
    background: red;
    color: #fff;
    z-index: 99999;
}

.currency {
    color: #ffffff;
}

.detail-text {
    color: #ffffff;
}

#highest-bid {
    display: inline;
    color: #ffffff;
    font-weight: 700;
}

#current-bid-label {
    color: #ffffff;
}

.current-bid-label {
    color: #ffffff;
}

.header-title {
    flex: 1;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.notice-logo {
    font-size: 46px;
    letter-spacing: 1px;
}

.form-input::placeholder {
    color: #71717a;
    opacity: 1;
}

input::placeholder {
    color: #71717a;
    opacity: 1;
}

input[type="password"] {
    color: #ffffff;
}

label {
    color: #e4e4e7 !important;
    font-weight: 700;
}

.screen-header {
    padding: 8px 20px 4px;
}

.screen-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.back-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #18181b;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-bottom: 18px;
}

#my-user-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.deal-date {
    margin-bottom: 6px;
    font-size: 13px;
    color: #a1a1aa;
}

/* ===========================
   전체 업종
=========================== */
#all-category-screen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.all-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.all-category-card {
    height: 56px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 3px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.all-category-card:active {
    transform: scale(.96);
    background: #2563eb;
}


.all-category-card span {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

#seller-info {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

#seller-info div,
#seller-info span,
#seller-info p {
    color: #ffffff !important;
}

.notice-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;

    padding: 8px 12px;
    margin-bottom: 6px;

    color: #ffffff;
    line-height: 1.25;
    font-size: 14px;
}

.notice-card strong {
    display: block;
    color: #22d3ee;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.notice-card br {
    display: block;
}

.role-select {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.role-btn {
    flex: 1;
    height: 28px;
    border: 1px solid #27272a;
    border-radius: 12px;
    background: #18181b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.role-btn.active {
    background: #22d3ee;
    color: #09090b;
    border-color: #22d3ee;
}

#reregister-card-btn,
#reregister-bank-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
}

.logo-title,
.logo-sub {
    color: #fff !important;
}

#seller-contact-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: #3f3f3f;
    color: #22c55e;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

#deal-complete-btn {
    margin-bottom: 12px;
}

#signup-screen .agree-wrap {
    display: flex;
    flex-direction: column;
}

#signup-screen .agree-row {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

#signup-screen .agree-row:not(:first-child) {
    font-size: 10px;
}

/* 매물등록 사진 10장 */
#photo-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    grid-template-rows: repeat(3, 42px);
    gap: 5px;
    width: 100%;
    margin-top: 6px;
}

#main-photo-box {
    grid-row: 1 / 4;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
}

.sub-photo-box {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
}

/* 회원가입 모바일 한 화면 맞춤 */
#signup-screen .screen-header {
    padding: 4px 12px 0;
}

#signup-screen .back-btn {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
}

#signup-screen .form-container {
    padding: 4px 10px;
}

#signup-screen .form-group {
    margin-bottom: 2px;
}

#signup-screen .form-label {
    margin-bottom: 2px;
    line-height: 1.1;
}

#signup-screen .agree-wrap {
    margin-top: 2px;
    line-height: 1.1;
}

#signup-screen .role-select {
    margin-top: 2px;
}

#signup-screen .bottom-button-area {
    padding: 5px 10px;
}

#signup-screen .submit-btn,
#signup-screen .secondary-btn {
    padding: 5px 10px;
    margin-top: 3px;
}

#signup-screen .role-select {
    margin-top: 0;
    margin-bottom: 0;
}

#signup-screen .role-btn {
    height: 26px;
}

#signup-screen .bottom-button-area {
    padding-top: 2px;
}