/**
 * AutoDelivery - Shared Delivery Unified Design System
 *
 * Full 3-column layout grid, Guard hero card animations,
 * glassmorphism cards, platform campaign badges, modals and toasts.
 *
 * @package AutoDelivery
 * @version 3.0.0
 */

.delivery-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.delivery-form-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delivery-card {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.delivery-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.delivery-brand-logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.delivery-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}

.delivery-card-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.delivery-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.delivery-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.45rem;
}

.delivery-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.delivery-input:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.22);
}

.delivery-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.delivery-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* Read-Only Input State */
.delivery-input-readonly,
input[readonly].delivery-input {
    cursor: not-allowed;
    user-select: none;
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    opacity: 0.85;
}

.delivery-input-readonly:hover,
.delivery-input-readonly:focus,
input[readonly].delivery-input:hover,
input[readonly].delivery-input:focus {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

/* =========================================================================
   STEP 3: ORDERS LIST GRID & CARD STYLES
   ========================================================================= */

.delivery-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}

.delivery-order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.25rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.delivery-order-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.15);
}

.delivery-order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.delivery-order-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.delivery-order-game-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.delivery-order-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.platform-badge {
    display: inline-block;
    background: rgba(102, 192, 244, 0.15);
    color: #66c0f4;
    border: 1px solid rgba(102, 192, 244, 0.3);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.platform-badge--steam {
    background: rgba(102, 192, 244, 0.15);
    color: #66c0f4;
    border-color: rgba(102, 192, 244, 0.3);
}

.platform-badge--ubisoft {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.platform-badge--ea {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.platform-badge--xbox {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.platform-badge--epic {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.25);
}

.delivery-order-details {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.delivery-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.delivery-detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.delivery-detail-value,
.trk-mono-id {
    font-family: monospace;
    font-weight: 700;
    color: #93c5fd;
}

.delivery-device-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.delivery-order-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.delivery-btn-action {
    font-size: 0.84rem;
    font-weight: 700;
    color: #60a5fa;
    transition: color 0.2s;
}

.delivery-order-card:hover .delivery-btn-action {
    color: #93c5fd;
}

/* =========================================================================
   3-COLUMN GRID & GUARD HERO STYLES
   ========================================================================= */

.result-3col-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 1.5rem;
    align-items: start;
    text-align: left;
    margin-top: 1.5rem;
}

.result-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .result-3col-grid {
        grid-template-columns: 1fr;
    }
    .result-col-left { order: 2; }
    .result-col-center { order: 1; }
    .result-col-right { order: 3; }
}

/* Mini Flow Tracker */
.flow-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.flow-step .num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
}

.flow-step .lbl {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.flow-step.done .num {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.flow-step.active .num {
    background: linear-gradient(135deg, #66c0f4, #3b82f6);
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 192, 244, 0.18);
    animation: flowPulseRing 2s infinite;
}

.flow-connector {
    flex: 0 0 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}
.flow-connector.done { background: rgba(16, 185, 129, 0.4); }

@keyframes flowPulseRing {
    0%, 100% { box-shadow: 0 0 0 4px rgba(102, 192, 244, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(102, 192, 244, 0.08); }
}

/* Guard Hero Card */
.guard-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.12), rgba(59, 130, 246, 0.08));
    border: 1.5px solid rgba(102, 192, 244, 0.4);
    border-radius: 1.25rem;
    padding: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0 32px rgba(102, 192, 244, 0.12);
}

.guard-hero-badge {
    position: absolute;
    top: -1px; right: 1.25rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 0 0 0.5rem 0.5rem;
    text-transform: uppercase;
}

.guard-hero-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem;
}

.guard-hero-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #66c0f4, #3b82f6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.guard-hero h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.guard-hero-desc { margin: 0 0 0.65rem; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; line-height: 1.45; text-align: left; }
.guard-hero-warning {
    display: block; margin: 0 0 0.75rem; padding: 0.65rem 0.85rem;
    background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 3px solid #fbbf24; border-radius: 0.6rem;
    color: #fef3c7; font-size: 0.82rem; text-align: left;
}

.guard-btn-container { display: flex; gap: 0.8rem; width: 100%; }

.guard-btn-steam {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem; font-weight: 700;
    border-radius: 0.85rem; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #66c0f4 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(102, 192, 244, 0.35);
    animation: heroBtnPulse 2.4s ease-in-out infinite;
    font-family: inherit;
}

.guard-btn-steam:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102, 192, 244, 0.5);
    animation: none;
}

.guard-btn-steam::after {
    content: ''; position: absolute; top: 50%; left: -100%; width: 50%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateY(-50%) skewX(-20deg);
    animation: heroBtnShine 3s ease-in-out infinite;
}

@keyframes heroBtnPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(102, 192, 244, 0.35); }
    50% { box-shadow: 0 6px 28px rgba(102, 192, 244, 0.6), 0 0 0 6px rgba(102, 192, 244, 0.08); }
}

@keyframes heroBtnShine {
    0%, 100% { left: -100%; }
    50% { left: 200%; }
}

.guard-code-card {
    border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(102, 192, 244, 0.35);
    border-left: 3px solid #66c0f4;
}

.guard-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.guard-platform-name { font-size: 0.72rem; font-weight: 700; color: #66c0f4; text-transform: uppercase; }
.guard-time-label { color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; font-weight: 700; }
.guard-card-body { display: flex; justify-content: space-between; align-items: center; }
.guard-code-text { font-size: 1.6rem; font-weight: 800; font-family: monospace; letter-spacing: 6px; color: #7dd3fc; }
.guard-copy-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 7px; color: #fff; padding: 6px 12px; cursor: pointer; font-size: 0.78rem; }

/* Manual Delivery Notice Card */
.manual-delivery-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: left;
}

.manual-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.manual-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.manual-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fef3c7;
    line-height: 1.35;
}

.manual-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.manual-card-info {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: rgba(253, 230, 138, 0.9);
}

.manual-support-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.manual-support-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Result Card & Credentials */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
}

.game-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.credential-group {
    margin-top: 1.25rem;
    text-align: left;
}

/* Modern Accordion & List Item Alignment */
.modern-accordion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modern-acc-card-header { display: flex; align-items: center; gap: 0.65rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.acc-card-badge { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.modern-accordion-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.85rem; overflow: hidden; }
.modern-accordion-header { width: 100%; background: transparent; border: none; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit; line-height: 1.4; word-break: break-word; }
.acc-title-text { display: flex; align-items: center; gap: 0.5rem; word-break: break-word; }
.acc-chev { transition: transform 0.3s ease; color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.modern-accordion-item.open .acc-chev { transform: rotate(180deg); color: #60a5fa; }
.modern-accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    border-top: 1px dashed transparent;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1),
                opacity 0.3s ease,
                padding 0.35s ease,
                border-color 0.35s ease;
}
.modern-accordion-item.open .modern-accordion-body {
    max-height: 1000px;
    opacity: 1;
    padding: 0 1rem 0.85rem 1rem;
    border-top-color: rgba(255, 255, 255, 0.05);
}
.modern-step-list { list-style: none; padding: 0; margin: 0.75rem 0 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.modern-step-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.84rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.modern-step-list li div { flex: 1; word-break: break-word; overflow-wrap: break-word; }
.step-num { background: rgba(255, 255, 255, 0.06); color: #60a5fa; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.75rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.step-num.highlight { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }

/* Help Row & Warning Recall Button */
.help-row { margin-top: 1rem; width: 100%; }
.help-btn { width: 100%; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 0.85rem; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.75rem; color: #fff; cursor: pointer; transition: all 0.2s ease; text-align: left; font-family: inherit; }
.help-btn:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }
.help-icon { font-size: 1.3rem; flex-shrink: 0; }
.help-text { display: flex; flex-direction: column; gap: 0.15rem; }
.help-text strong { font-size: 0.86rem; color: #fca5a5; font-weight: 700; }
.help-text small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

/* Buttons & Inputs */
.input-with-copy { position: relative; display: flex; align-items: center; }
.input-with-copy input { width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.75rem; padding: 0.85rem 3rem 0.85rem 1rem; color: white; font-family: monospace; font-size: 1rem; outline: none; box-sizing: border-box; }
.copy-btn { position: absolute; right: 0.5rem; background: transparent; border: none; color: rgba(255, 255, 255, 0.6); padding: 0.4rem; cursor: pointer; border-radius: 0.5rem; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; }
.copy-btn:hover { color: white; background: rgba(255, 255, 255, 0.15); transform: scale(1.1); }
.copy-btn:active { transform: scale(0.9); }

.action-button {
    width: 100%; border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white;
    padding: 1rem 1.25rem; font-size: 1rem; font-weight: 700; border-radius: 0.85rem;
    cursor: pointer; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit;
    user-select: none;
}
.action-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
    filter: brightness(1.08);
}
.action-button:active:not(:disabled) {
    transform: translateY(1px) scale(0.975);
    filter: brightness(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.secondary-button {
    background: rgba(59, 130, 246, 0.07); color: rgba(147, 197, 253, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.25); padding: 0.85rem 1.5rem;
    border-radius: 0.75rem; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    margin-top: 1rem; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit;
    user-select: none;
}
.secondary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}
.secondary-button:active:not(:disabled) {
    transform: translateY(1px) scale(0.975);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Platform Campaign Card */
.platform-campaign-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.campaign-badge {
    background: #f59e0b; color: #fff; font-size: 0.65rem; font-weight: 800;
    padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase;
}

.campaign-title { margin: 0.4rem 0 0.25rem; font-size: 0.98rem; font-weight: 700; color: #fff; }
.campaign-desc { margin: 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }
.campaign-coupon-box { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.coupon-code { background: rgba(0,0,0,0.3); border: 1px dashed #f59e0b; padding: 0.4rem 0.75rem; border-radius: 6px; font-family: monospace; font-weight: 700; color: #fde68a; }
.coupon-copy-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.4rem 0.75rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }

/* Sticky CTA & Modal */
.sticky-cta {
    position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
    background: rgba(17, 25, 40, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(102, 192, 244, 0.4); border-radius: 9999px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem; display: none; align-items: center; gap: 0.85rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); z-index: 50;
}
.sticky-cta.visible { display: flex; }
.sticky-cta-text { font-size: 0.82rem; font-weight: 600; color: #fff; }
.sticky-cta button { background: linear-gradient(135deg, #66c0f4, #3b82f6); border: none; color: white; padding: 0.55rem 1.1rem; border-radius: 9999px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }

/* =========================================================================
   STEP 2: DEVICE NAME PROMPT & ACCORDION GUIDE STYLES
   ========================================================================= */

.delivery-notice-banner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(185, 28, 28, 0.06));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.notice-line-1 {
    margin: 0;
    font-size: 0.86rem;
    color: #fecaca;
    line-height: 1.4;
}

.notice-line-2 {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(254, 202, 202, 0.8);
}

.required-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 0.2rem;
}

/* Saved Devices Chips Section */
.delivery-saved-devices-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.delivery-saved-devices-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.65rem;
}

.delivery-saved-devices-sub {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}

.delivery-saved-devices-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.delivery-device-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-device-chip:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
}

.delivery-device-chip.selected {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #60a5fa;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.delivery-chip-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.1rem;
    transition: color 0.2s;
}

.delivery-chip-remove:hover {
    color: #ef4444;
}

/* Accordion Guide Toggle & Content */
.delivery-guide-toggle-wrapper {
    margin-top: 1.25rem;
    text-align: left;
}

.delivery-guide-toggle-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.delivery-guide-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.delivery-accordion-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 0.85rem;
    margin-top: 0;
    padding: 0 1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.35s ease, margin-top 0.35s ease, border-color 0.35s ease;
}

.delivery-accordion-content.open {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem;
    margin-top: 0.65rem;
    border-color: rgba(255, 255, 255, 0.08);
}

.guide-main-title {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #60a5fa;
}

.delivery-platform-accordion {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.delivery-platform-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.delivery-platform-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.delivery-platform-panel {
    padding: 0 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px dashed transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.35s ease, border-color 0.35s ease;
}

.delivery-platform-panel.open {
    max-height: 1000px;
    opacity: 1;
    padding: 0.75rem 0.85rem;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.guide-item-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.guide-item-desc code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #fde68a;
    font-family: monospace;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.warning-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.warning-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.warning-modal-box {
    background: #111827;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-top: 4px solid #ef4444;
    border-radius: 1.2rem;
    width: 90%;
    max-width: 550px;
    padding: 2rem;
    max-height: 88vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.warning-modal-overlay.active .warning-modal-box {
    animation: modalScaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.warning-modal-header h3 { color: #fca5a5; margin: 0 0 1rem; }
.warning-highlight { background: rgba(251, 191, 36, 0.1); border-left: 3px solid #fbbf24; padding: 0.75rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 0.75rem; }
.warning-danger { background: rgba(239, 68, 68, 0.1); border-left: 3px solid #ef4444; padding: 0.75rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }
.warning-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #fff; margin-bottom: 1.25rem; }

/* Modern Sub-Navigation Bar Above Orders */
.delivery-subnav-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.delivery-subnav-bar::-webkit-scrollbar {
    display: none;
}

.subnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.25s ease;
    user-select: none;
}

.subnav-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.subnav-pill:hover .subnav-icon {
    transform: scale(1.2) rotate(-6deg);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subnav-pill:active {
    transform: translateY(1px) scale(0.975);
}

.subnav-pill.active {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), inset 0 0 8px rgba(59, 130, 246, 0.2);
}

.subnav-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

/* =========================================================================
   REUSABLE EMPTY STATE BOX
   ========================================================================= */

.empty-state-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.85rem;
    opacity: 0.85;
}

.empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem 0;
}

.empty-state-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 420px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

.empty-state-notice {
    font-size: 0.92rem;
    color: #fde68a;
    font-weight: 600;
    max-width: 420px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

/* =========================================================================
   SUPPORT CHAT CONTAINER BEM STYLES
   ========================================================================= */

.delivery-chat-window {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.delivery-chat-header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.delivery-chat-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    height: clamp(300px, 50vh, 440px);
    overflow-y: auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.delivery-chat-footer {
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.delivery-chat-msg {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    max-width: 82%;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.delivery-chat-msg--agent {
    align-self: flex-start;
}

.delivery-chat-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.delivery-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.delivery-chat-avatar--agent {
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.delivery-chat-avatar--user {
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.delivery-chat-content {
    flex: 1;
    min-width: 0;
}

.delivery-chat-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.delivery-chat-msg--user .delivery-chat-meta {
    justify-content: flex-end;
}

.delivery-chat-sender {
    font-size: 0.84rem;
    font-weight: 700;
    color: #60a5fa;
}

.delivery-chat-sender--user {
    color: #34d399;
}

.delivery-chat-badge {
    font-size: 0.68rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.delivery-chat-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

.delivery-chat-msg--agent .delivery-chat-time {
    margin-left: auto;
}

.delivery-chat-bubble {
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.delivery-chat-bubble--agent {
    background: rgba(30, 58, 138, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0 1.15rem 1.15rem 1.15rem;
    color: #f8fafc;
}

.delivery-chat-bubble--user {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.55), rgba(16, 185, 129, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 1.15rem 0 1.15rem 1.15rem;
    color: #ffffff;
    text-align: left;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */

@media (max-width: 640px) {
    .delivery-subnav-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.65rem;
    }
    .subnav-pill {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem;
    }
    .delivery-chat-body {
        height: clamp(280px, 45vh, 380px);
    }
}

@media (max-width: 480px) {
    .delivery-orders-grid {
        grid-template-columns: 1fr;
    }
    .flow-tracker {
        padding: 0.65rem 0.5rem;
        gap: 0.25rem;
    }
    .flow-step .lbl {
        font-size: 0.62rem;
        text-align: center;
    }
    .flow-connector {
        flex: 0 0 10px;
    }
    .delivery-card {
        padding: 1.25rem;
    }
}

/* =========================================================================
   MILESTONE 2: MATERIAL RIPPLE & TACTILE PRESS FEEDBACK
   ========================================================================= */

.action-button,
.secondary-button,
.copy-btn,
.subnav-pill,
.guard-btn-steam,
.help-btn {
    position: relative;
    overflow: hidden;
}

.delivery-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: deliveryRippleAnim 0.6s cubic-bezier(0, 0, 0.2, 1) forwards;
    z-index: 10;
}

@keyframes deliveryRippleAnim {
    0% {
        transform: scale(0);
        opacity: 0.55;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.action-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.copy-btn:active,
.subnav-pill:active,
.guard-btn-steam:active,
.help-btn:active {
    transform: translateY(1px) scale(0.975) !important;
    filter: brightness(0.95);
}

/* =========================================================================
   MILESTONE 2: ULTRA-MODERN TOAST SYSTEM
   ========================================================================= */

.trk-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: calc(100% - 3rem);
    pointer-events: none;
}

.trk-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
    color: #f8fafc;
    font-size: 0.925rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    animation: trkToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.trk-toast.trk-toast-hiding {
    animation: trkToastSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.trk-toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.trk-toast-content {
    flex: 1;
}

.trk-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.trk-toast-message,
.trk-toast-msg {
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.875rem;
    line-height: 1.45;
}

.trk-toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.trk-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.trk-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: trkToastProgress linear forwards;
}

/* Toast Variants */
.trk-toast-success {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.22);
}
.trk-toast-success .trk-toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.trk-toast-success .trk-toast-progress {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.trk-toast-error, .trk-toast-danger {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.22);
}
.trk-toast-error .trk-toast-icon, .trk-toast-danger .trk-toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.trk-toast-error .trk-toast-progress, .trk-toast-danger .trk-toast-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.trk-toast-warning {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.22);
}
.trk-toast-warning .trk-toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.trk-toast-warning .trk-toast-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.trk-toast-info {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.22);
}
.trk-toast-info .trk-toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.trk-toast-info .trk-toast-progress {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

@keyframes trkToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes trkToastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
    }
}

@keyframes trkToastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* =========================================================================
   MILESTONE 2: INTERACTIVE COPY TOOLTIPS & BUTTON HIGHLIGHT
   ========================================================================= */

.copy-tooltip {
    position: fixed;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(59, 130, 246, 0.3);
    pointer-events: none;
    transform: translateX(-50%);
    animation: copyTooltipFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    white-space: nowrap;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid rgba(59, 130, 246, 0.45);
    border-bottom: 1px solid rgba(59, 130, 246, 0.45);
}

.copy-tooltip.copy-tooltip-hiding {
    animation: copyTooltipFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes copyTooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -8px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes copyTooltipFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -8px) scale(0.9);
    }
}

.copy-success {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.45), 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
    transition: all 0.25s ease !important;
}

/* =========================================================================
   MILESTONE 2: BUTTON SPINNER & LOADING STATES
   ========================================================================= */

.btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: btnSpinPulse 0.8s linear infinite;
    line-height: 1;
}

.btn-spinner-svg {
    display: block;
}

@keyframes btnSpinPulse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

