/* ========================================
   LICENSE KEYS DASHBOARD - THEMEFOREST LEVEL
   ======================================== */

/* License Keys Page Header */
.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content h2::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}

/* License Keys Table Container */
.license-table {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid #e2e8f0;
}

/* Table Header */
.license-head {
    display: grid;
    grid-template-columns: 2.5fr 3fr 1.2fr 1fr;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Row */
.license-row {
    display: grid;
    grid-template-columns: 2.5fr 3fr 1.2fr 1fr;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.license-row:last-child {
    border-bottom: none;
}

.license-row:hover {
    background: #f8fafc;
}

.license-row span:first-child {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

/* License Key Styling */
.license-key.mono {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: #475569;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-key.mono:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #166534;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInDown 0.2s ease;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #166534;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Domain Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
    white-space: nowrap;
}

/* Order Number */
.license-row span:last-child {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

/* Empty State */
.woocommerce-account .woocommerce-MyAccount-content > p {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin-top: 24px;
}

/* ========================================
   ORDER DETAILS - LICENSE BOX
   ======================================== */

.license-box {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
    border: 1px solid rgba(255,255,255,.1);
}

.license-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-box h3::before {
    content: '🔑';
    font-size: 22px;
}

.license-key-wrapper,
.license-domains-wrapper {
    margin-bottom: 18px;
}

.license-key-wrapper:last-child,
.license-domains-wrapper:last-child {
    margin-bottom: 0;
}

.license-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.license-box .license-key {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 14px 18px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    display: block;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.license-box .license-key:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.license-box .license-domains {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: inline-block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .license-head,
    .license-row {
        grid-template-columns: 2fr 2.5fr 1fr 0.8fr;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .license-key.mono {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .license-head {
        display: none;
    }
    
    .license-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .license-row span {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .license-row span:first-child {
        font-size: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .license-row span::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.5px;
    }
    
    .license-key.mono {
        width: 100%;
        font-size: 12px;
    }
    
    .badge {
        align-self: flex-start;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content h2 {
        font-size: 24px;
    }
    
    .license-box {
        padding: 24px;
    }
    
    .license-box h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .license-table {
        border-radius: 8px;
    }
    
    .license-row {
        padding: 16px;
    }
    
    .license-box {
        padding: 20px;
    }
    
    .license-box h3 {
        font-size: 16px;
    }
    
    .license-box .license-key {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .license-box .license-domains {
        font-size: 14px;
        padding: 8px 12px;
    }
}
