:root {
    --primary-color: #0052d9; /* TDesign Blue */
    --primary-hover: #003cab;
    --error-color: #d54941;
    --success-color: #2ba471;
    --warning-color: #e37318;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #e0f2fe;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #f0f9ff;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #e0e7ff;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

/* Modern Card / Glassmorphism Container */
.modern-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 460px;
    margin: 40px auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 82, 217, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.modern-card:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
}

.form-control:hover {
    border-color: #d1d5db;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    gap: 8px;
    text-decoration: none;
}

.btn-primary, .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 217, 0.3);
}

.btn-primary::after, .btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after, .btn-login:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.back-link {
    text-align: center;
    margin-top: 32px;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.back-link a:hover {
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 24px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

/* Tabs */
.tab-container {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tab-item.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #4caf50;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wechat:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    margin: 24px 0;
    font-size: 14px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inline Button */
.code-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.code-btn:hover {
    background: #f0f9ff;
}

.code-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-color);
}
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* Admin Dashboard & Legacy Styles Support */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 82, 217, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.2);
    text-decoration: none;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: #f9fafb;
    padding: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-main);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Status Tags */
.status-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-success { background: #d1fae5; color: #065f46; }
.status-error { background: #fee2e2; color: #991b1b; }
.status-warning { background: #fef3c7; color: #92400e; }

/* Log List */
.log-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    color: #606266;
}

/* Main Footer */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 1000;
    background: transparent;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        /* Keep gradient background but ensure min-height */
        min-height: 100vh;
    }

    .modern-card {
        margin: 20px auto;
        padding: 30px 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        max-width: 92%;
        width: 92%;
        min-height: auto;
    }
    
    .bg-shape { display: none; }
    
    .main-footer {
        z-index: 1;
        font-size: 12px;
        color: #9ca3af;
    }

    /* Mobile Navigation Optimization */
    .navbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-brand {
        margin-right: auto; /* Push brand to left */
    }

    .nav-brand a {
        display: none; /* Hide brand text on mobile to save space */
    }

    .nav-brand span {
        font-size: 24px !important;
    }

    .nav-links {
        gap: 6px;
        overflow-x: auto; /* Allow horizontal scrolling for links */
        -webkit-overflow-scrolling: touch;
        padding: 4px 0; /* Prevent scrollbar clipping */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap; /* Prevent text wrapping */
        border-radius: 8px;
    }

    .nav-user .btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
}

/* Landing Page Styles */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-primary {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-btn {
    min-width: 160px;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 16px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.promo-section {
    margin: 80px 0;
}

.promo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    align-items: center;
}

.promo-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
}

.check-list {
    list-style: none;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.check-icon {
    color: var(--success-color);
    font-weight: bold;
    background: #d1fae5;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 16px;
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}

.code-block::before {
    content: 'API Preview';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.token-comment { color: #64748b; }
.token-method { color: #a5b4fc; font-weight: bold; }
.token-key { color: #7dd3fc; }
.token-string { color: #86efac; }
.token-punct { color: #94a3b8; }

/* Status Pages */
.status-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.status-icon.success {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.status-icon.error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-card.wide {
    max-width: 800px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 60px;
}

/* Dashboard Styles */
.dashboard-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-card-left {
    text-align: left;
    align-items: flex-start;
}

.feature-icon-sm {
    font-size: 24px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.data-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    color: var(--text-secondary);
}

.data-value {
    font-weight: 500;
    color: var(--text-main);
    font-family: monospace;
}

.logs-container {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 20px;
    color: #e2e8f0;
    margin-top: 40px;
}

.logs-summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    color: #94a3b8;
}

.log-list-terminal {
    font-family: "Fira Code", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.log-item-terminal {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.log-item-terminal.error {
    color: #ef4444;
}

/* Navbar User Dropdown */
.nav-user {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 8px;
    z-index: 101;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    color: var(--text-main);
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status Box */
.status-box {
    display: none;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    animation: slideDown 0.3s ease-out;
}

.status-box h3 {
    color: #059669;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.status-box p {
    color: #047857;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-wrapper {
    font-size: 48px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Profile Card Styles */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #36cfc9 0%, #00b96b 100%); 
    box-shadow: 0 10px 20px rgba(0, 185, 107, 0.2);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.info-value {
    font-family: monospace;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .promo-card { grid-template-columns: 1fr; padding: 30px; }
    .code-block { font-size: 0.8rem; overflow-x: auto; }
}

/* Horizontal Login Layout */
.login-horizontal-card {
    display: flex;
    max-width: 900px;
    min-height: 500px;
    overflow: hidden;
    padding: 0; /* Remove padding from base card */
}

.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-left-panel .brand-container {
    width: 100%;
}

.login-left-panel .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 32px;
    box-shadow: none;
}

.login-left-panel h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.login-left-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.login-right-panel {
    flex: 1.2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-main);
    text-align: center;
}

@media (max-width: 768px) {
    .login-horizontal-card {
        flex-direction: column;
        min-height: auto;
        max-width: 460px;
    }
    
    .login-left-panel {
        border-top-right-radius: var(--radius-lg);
        border-bottom-left-radius: 0;
        padding: 32px;
    }

    .login-right-panel {
        padding: 32px;
    }
}

/* Helper Classes */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #f56c6c;
    color: #f56c6c;
}

.btn-danger-outline:hover {
    background: #fef0f0;
    color: #f56c6c;
}

.btn-success-outline {
    background: transparent;
    border: 1px solid #67c23a;
    color: #67c23a;
}

.btn-success-outline:hover {
    background: #f0f9eb;
    color: #67c23a;
}

.btn-warning-outline {
    background: transparent;
    border: 1px solid #e6a23c;
    color: #e6a23c;
}

.btn-warning-outline:hover {
    background: #fdf6ec;
    color: #e6a23c;
}

.mt-20 { margin-top: 20px; }
.mt-10 { margin-top: 10px; }
.mr-10 { margin-right: 10px; }
.mb-10 { margin-bottom: 10px; }

.modal-card-lg {
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Feature Icon Colors */
.icon-green { color: var(--success-color); }
.icon-blue { color: var(--primary-color); }
.icon-orange { color: var(--warning-color); }
