/* =========================================
   ORDERS MODULE - PREMIUM GLASS DASHBOARD (V2)
   ========================================= */

/* =========================================
   ORDERS DASHBOARD (GRID LAYOUT)
   ========================================= */

.orders-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
}


/* MAIN DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile/tablet */
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.btn-text-small {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* LEFT COL */
.active-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* RIGHT COL (HISTORY) */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* TWEAK COMPACT ITEMS FOR SIDEBAR */
.dash-col-side .order-item-compact {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.dash-col-side .order-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

/* PREMIUM ORDER CARD */
.order-card-premium {
    background: var(--plan-glass);
    /* Reusing glass var if available, else fallback */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.order-card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Status Variations for Cards */
.order-card-premium.status-pending:hover {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 10px 30px -10px rgba(250, 204, 21, 0.2);
}

.order-card-premium.status-confirmed:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.2);
}

.order-card-premium.status-expired:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

/* STATUS BADGE */
.oc-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid transparent;
}

.status-pending .oc-status-badge {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.2);
    animation: pulse 2s infinite;
}

.status-confirming .oc-status-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    animation: pulse 2s infinite;
}

.status-confirmed .oc-status-badge {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.2);
}

.status-expired .oc-status-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-cancelled .oc-status-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}

/* CARD CONTENT */
.oc-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.oc-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 110px;
    /* Space for badge */
}

.oc-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.oc-meta .sep {
    margin: 0 0.5rem;
    color: #475569;
}

.oc-meta i {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    color: #94a3b8;
}

/* CARD FOOTER */
.oc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.oc-total-block .label {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oc-total-block .amount {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    /* Default */
}

/* Status colors for amount */
.status-pending .amount {
    color: #facc15;
}

.status-confirmed .amount {
    color: #22d3ee;
}

.oc-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-card-premium:hover .oc-action-btn {
    background: white;
    color: black;
    transform: translateX(4px);
}


/* =========================================
   GROUPED LIST LAYOUT (COMPACT ITEMS)
   ========================================= */

.orders-group-card {
    border-radius: 24px;
    padding: 0;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    /* Base Glass: Darker, deeper */
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Reverted Debug Border */
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Specific Group Themes */
.status-pending.orders-group-card {
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.08) 0%, rgba(10, 15, 30, 0.6) 100%);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.05);
}

.status-confirmed.orders-group-card {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, rgba(10, 15, 30, 0.6) 100%);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.05);
}

.status-archived.orders-group-card {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.05) 0%, rgba(10, 15, 30, 0.6) 100%);
    border-color: rgba(148, 163, 184, 0.15);
}

/* GROUP HEADER */
.og-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.status-pending .og-header {
    border-bottom-color: rgba(250, 204, 21, 0.15);
}

.status-confirmed .og-header {
    border-bottom-color: rgba(34, 211, 238, 0.15);
}

.og-title-block {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.og-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-pending .og-icon {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.2);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

.status-confirmed .og-icon {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.og-title-block h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.og-title-block p {
    margin: 0.2rem 0 0 0;
    font-size: 0.95rem;
    color: #94a3b8;
}

.og-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* COMPACT ITEMS LIST */
.og-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.order-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    /* Darker base */
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.order-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
}

/* Dynamic Borders on Hover */
.status-pending .order-item-compact:hover {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 4px 20px -5px rgba(250, 204, 21, 0.15);
}

.status-confirmed .order-item-compact:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 4px 20px -5px rgba(34, 211, 238, 0.15);
}

.oic-info {
    flex: 1;
    /* Better spacing control */
}

.oic-title {
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.oic-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-family: var(--font-mono);
}

.oic-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.oic-price {
    text-align: right;
}

.oic-price small {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.oic-price .amount {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

.status-pending .oic-price .amount {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.status-confirmed .oic-price .amount {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.oic-icon {
    width: 20px;
    height: 20px;
    color: #475569;
    transition: all 0.2s;
}

.order-item-compact:hover .oic-icon {
    color: white;
    transform: translateX(2px);
}

/* EMPTY STATES */
.empty-state-premium {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-state-premium .icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.empty-state-premium p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* RESPONSIVE */
.og-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .orders-grid-premium {
        grid-template-columns: 1fr;
    }

    .od-grid {
        grid-template-columns: 1fr;
    }

    .og-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .og-badge {
        margin-left: 0;
        align-self: flex-start;
    }

    .order-item-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .oic-right {
        width: 100%;
        justify-content: space-between;
    }

    .oic-price {
        text-align: left;
    }
}

/* ANIMATIONS */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Orders container wrapper */
#orders-list-container {
    padding: 0 2rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Empty state styling */
.empty-state {
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
}

.empty-state i {
    margin-bottom: 1rem;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Filter Buttons */
.order-filter-btn:hover {
    color: white !important;
}

.order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.oc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.oc-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.oc-amount {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
}

.oc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.oc-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

/* Detail View */
.order-detail-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.od-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.od-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.od-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.od-main {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
}

.od-sidebar {
    position: sticky;
    top: 2rem;
}

.od-items h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.od-item-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.od-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--accent);
}

/* =========================================
   NEW CHECKOUT STYLES (Order Detail)
   ========================================= */

/* Progress Bar */
.chk-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.chk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s;
}

.chk-step.active {
    opacity: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
}

.chk-step.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: black;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.chk-step span {
    font-size: 0.8rem;
    font-weight: 600;
}

.chk-step-line {
    flex: 1;
    height: 2px;
    background: #334155;
    margin: 0 1rem;
    transform: translateY(-14px);
    z-index: 1;
}

.chk-step-line.active {
    background: var(--accent);
}

/* Payment Block Enhanced */
.pb-amount-row {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pb-copy-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pb-address-box-large {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.pb-addr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.pb-addr-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--text-muted);
}

/* Locked Zone */
.locked-zone {
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.lz-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lz-header h3 {
    margin: 0;
    font-size: 1rem;
}

.lz-badge {
    background: #334155;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.lz-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lz-grid.blur {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.lz-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.lz-info {
    flex: 1;
}

.lz-info strong {
    display: block;
    font-size: 0.95rem;
}

.lz-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.unlocked .lz-header {
    background: rgba(34, 211, 238, 0.05);
    border-bottom-color: rgba(34, 211, 238, 0.2);
}

/* Sidebar Summaries - MOVED TO CHECKOUT.CSS
.od-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.od-item-mini {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.od-total-mini {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.upsell-mini {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}


    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
        /* Force 1 column */
        padding: 1rem;
    }

    .order-card {
        padding: 1rem;
    }

    .od-grid {
        grid-template-columns: 1fr;
    }

    .od-sidebar {
        position: static;
        order: -1;
        /* Show summary first or last? Let's keep it standard (last) but maybe Status first? */
        margin-bottom: 2rem;
    }

    .od-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-detail-layout {
        padding: 1rem 1rem 6rem 1rem;
    }
}

/* =========================================
   DETAIL VIEW PREMIUM (Added v4)
   ========================================= */

.order-detail-premium {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.odp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.btn-text-back {
    background: none;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1rem;
}

.btn-text-back:hover {
    color: white;
}

.odp-id {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* PROGRESS BAR */
.chk-progress-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    position: relative;
}

.chk-progress-premium .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    opacity: 0.4;
    transition: all 0.3s;
}

.chk-progress-premium .step.active {
    opacity: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}

.step.active .step-icon {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #334155;
    transform: translateY(-18px);
    margin: 0 1rem;
    z-index: 1;
}

.step-line.active {
    background: var(--neon-cyan);
}

/* GRID LAYOUT */
.odp-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.odp-main-col {
    min-width: 0;
    /* Prevents overflow issues */
}

.odp-sidebar-col {
    min-width: 0;
}

.odp-support-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.odp-support-card i {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.odp-support-card p {
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* PREVIEW CARD (Sidebar) */
.odp-preview-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.odp-preview-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.preview-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-item-info strong {
    color: white;
    font-size: 0.9rem;
}

.preview-item-info span {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* BUTTON VARIANTS */
.btn-icon-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* VERSIONS HISTORY */
.btn-group-sm {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-text-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-text-sm i {
    width: 14px;
    height: 14px;
}

.btn-text-sm:hover,
.btn-text-sm.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon-sm.active {
    background: var(--neon-cyan);
    color: black;
    border-color: var(--neon-cyan);
}

.btn-icon-sm:hover {
    background: var(--neon-cyan);
    color: black;
    border-color: var(--neon-cyan);
}

/* EXPIRED ORDER CARD */
.expired-card-premium {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
}

.expired-card-premium h2 {
    color: #ef4444;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.expired-card-premium p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.icon-box-lg.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}




/* VERIFYING BLOCK STYLES */
.verifying-animation-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.verifying-animation-container .main-icon {
    width: 48px;
    height: 48px;
    color: var(--neon-cyan);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.status-title {
    font-size: 1.5rem;
    color: white;
    margin: 0 0 2rem 0;
    font-weight: 600;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 450px;
    width: 100%;
    margin-bottom: 2rem;
}

.info-box p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.5;
}

.info-box .sub-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.highlight-cyan {
    color: var(--neon-cyan);
}

.btn-text-refresh {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-text-refresh:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* =========================================
   PAYMENT CARD COMPONENTS (Consolidated)
   ========================================= */

.payment-card-premium {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.pcp-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcp-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

/* STATUS VARIANTS */
.pcp-header.pending {
    border-left: 4px solid #facc15;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.05), transparent);
}

.pcp-header.pending h2 {
    color: #facc15;
}

.pcp-header.confirming {
    border-left: 4px solid var(--neon-cyan);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent);
}

.pcp-header.confirming h2 {
    color: var(--neon-cyan);
}

.pcp-header.success {
    border-left: 4px solid var(--neon-cyan);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent);
}

.pcp-header.success h2 {
    color: var(--neon-cyan);
}

.timer-badge {
    font-family: var(--font-mono);
    color: #facc15;
    font-weight: 700;
    background: rgba(250, 204, 21, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

/* Update timer badge color for confirming/success if needed, 
   but logic in HTML usually handles content. 
   We can add a specific override if the HTML adds a class. */
.pcp-header.confirming .timer-badge,
.pcp-header.success .timer-badge {
    color: var(--neon-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.pcp-body {
    padding: 2rem;
}

.pcp-body.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PREVIEW CARD (used in payment/verifying blocks) */
.preview-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--neon-cyan);
}

.preview-info {
    flex: 1;
}

.preview-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.preview-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}


.pcp-field {
    margin-bottom: 2rem;
}

.pcp-field label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.amount-copy-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.amount-copy-row .val {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.btn-copy,
.btn-copy-sm,
.btn-versions,
.btn-download {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy {
    width: 40px;
    height: 40px;
}

.btn-copy:hover {
    background: white;
    color: black;
}

.addr-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.addr {
    font-family: var(--font-mono);
    color: #cbd5e1;
    font-size: 0.95rem;
    word-break: break-all;
}

.btn-copy-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.pcp-qr {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.qr-img {
    border-radius: 16px;
    padding: 10px;
    background: white;
}

.pcp-actions {
    text-align: center;
}

.instr {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.btn-action-primary {
    background: var(--neon-cyan);
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transition: all 0.3s;
}

.btn-action-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}

/* SIDEBAR SUMMARY PREMIUM */
.odp-summary-card.premium-glass {
    background: linear-gradient(135deg, rgba(20, 10, 30, 0.6) 0%, rgba(30, 10, 40, 0.4) 100%);
    border: 1px solid rgba(255, 0, 255, 0.1);
    /* Magenta border hint */
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
    /* Purple glow */
    position: relative;
    overflow: hidden;
}

/* Magenta/Purple Gradient Glow Element */
.odp-summary-card.premium-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.summary-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.order-date {
    font-size: 0.8rem;
    color: #a855f7;
    /* Purple text */
    font-family: var(--font-mono);
}

.item-row {
    display: grid;
    /* Changed to grid for better control */
    grid-template-columns: 40px 1fr auto;
    /* Icon | Info | Price */
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    border-radius: 12px;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}

.item-row:hover {
    background: rgba(255, 0, 255, 0.05);
    /* Magenta hover */
    border-color: rgba(255, 0, 255, 0.2);
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    /* Purple bg */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d946ef;
    /* Magenta icon */
}

.item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent text overflow */
}

.item-name {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-type {
    font-size: 0.75rem;
    color: #94a3b8;
}

.item-price-col {
    text-align: right;
    white-space: nowrap;
}

.item-price {
    color: #e2e8f0;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.total-row.premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    position: relative;
    z-index: 1;
}

.total-label {
    font-size: 0.9rem;
    color: #d946ef;
    /* Magenta title */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.total-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-crypto {
    font-size: 1.25rem;
    /* Slightly smaller to prevent break */
    font-weight: 700;
    background: linear-gradient(to right, #d946ef, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-mono);
}

.total-fist {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* DOWNLOADS */
.dl-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dl-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 600;
}

.dl-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-download {
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.btn-download:hover {
    background: var(--neon-cyan);
    color: black;
}

.versions-panel {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}