/* ═══════════════════════════════════════════════════════
   BGrade Hub — Professional Tool Selection Page (Redesigned)
   ═══════════════════════════════════════════════════════ */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.12);
    --bg-base: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.45);
    --card-bg: rgba(255, 255, 255, 0.6);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-base: #090d16;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 23, 42, 0.45);
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(99, 102, 241, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
}

[data-theme="dark"] body {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

/* Background Decoration */
.bg-blob {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    z-index: -2;
    filter: blur(80px);
    pointer-events: none;
    animation: move-blob 25s infinite alternate ease-in-out;
}
.blob-1 { top: -200px; right: -100px; background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 75%); }
.blob-2 { bottom: -200px; left: -100px; background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 75%); animation-delay: -12s; }

@keyframes move-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 80px) scale(1.1); }
    100% { transform: translate(-40px, 40px) scale(0.95); }
}

/* Main Container */
.hub-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 2rem 2rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 3.5rem auto 1rem;
    padding: 0 1rem;
}
.hero h1 {
    font-size: clamp(2.35rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 20%, #a855f7 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

/* Interactive Search Box */
.hero-search-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1rem;
    width: 100%;
}
.hero-search-wrapper i.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
    transition: var(--transition);
}
.hero-search-input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.hero-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-base);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.25);
}
.hero-search-wrapper:focus-within i.search-icon {
    color: var(--primary);
}

/* Hero search tags */
.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.hero-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.95rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.hero-tag:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Search results in hero */
.hero-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.6rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99;
    text-align: left;
}
.hero-search-results.show {
    display: flex;
}

/* Tool Grid & Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 330px;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-hover);
}

/* Cursor Glow Overlay */
.tool-card .spotlight-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    z-index: 0;
}
.tool-card:hover .spotlight-glow {
    opacity: 1;
}

.tool-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    gap: 1rem;
    justify-content: center;
}

.tool-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-featured-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.tool-card:hover .tool-featured-img {
    transform: scale(0.96) translateY(-8px);
}

/* Tool Card Icon Wrapper Styles */
.tool-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.tool-card:hover .tool-icon-wrapper {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}
[data-theme="dark"] .tool-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #a5b4fc;
}
[data-theme="dark"] .tool-card:hover .tool-icon-wrapper {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.6);
}

.tool-info {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.tool-card:hover .tool-info {
    transform: translateY(-32px);
}
.tool-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    text-align: center;
    transition: var(--transition);
}
.tool-info p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.88rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(15px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card:hover .tool-info p {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
    margin-top: 0.25rem;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(15px);
    width: 100%;
    text-align: center;
}
.btn-arrow i {
    font-size: 1rem;
    transition: var(--transition);
}
.tool-card:hover .btn-arrow {
    color: var(--primary-hover);
    opacity: 1;
    max-height: 40px;
    transform: translateY(0);
    margin-top: 0.75rem;
}
.tool-card:hover .btn-arrow i {
    transform: translateX(6px);
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin-top: 2rem;
    padding: 2.25rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.stat-item {
    text-align: center;
    flex: 1;
}
.stat-val {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}
.feature-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-hover);
}
.feature-item i {
    font-size: 2.75rem;
    color: var(--primary);
    background: var(--primary-glow);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}
.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hub Sections */
.hub-section {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-title span {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Feedback/Testimonials Grid */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.testimonial-item {
    padding: 2rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-item:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}
.testi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.testi-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}
.testi-header h4 {
    font-size: 1rem;
    font-weight: 700;
}
.testi-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-top: 0.15rem;
    display: flex;
    gap: 2px;
}
.testimonial-item p.testi-msg {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    flex: 1;
}
.testi-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category Filters */
.feedback-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    width: 100%;
}
.feedback-filter {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.feedback-filter.active,
.feedback-filter:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 15px -4px rgba(99, 102, 241, 0.4);
}

/* Pagination */
.feedback-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    width: 100%;
    flex-wrap: wrap;
}
.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.page-btn.active,
.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 15px -4px rgba(99, 102, 241, 0.4);
}
.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.page-ellipsis {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    user-select: none;
}
@media (max-width: 480px) {
    .page-btn, .page-ellipsis {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

/* Admin Replies */
.admin-reply {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 4px 14px 14px 4px;
    text-align: left;
}
[data-theme="dark"] .admin-reply {
    background: rgba(99, 102, 241, 0.08);
}
.admin-reply-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-reply p {
    font-size: 0.85rem !important;
    color: var(--text-main) !important;
    font-style: normal !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* Feedback Form Card */
.feedback-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
}
.feedback-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.feedback-card h3 span {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feedback-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-base);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}
.hub-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-base);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.rating-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.stars {
    display: flex;
    gap: 6px;
    font-size: 1.75rem;
    color: #fbbf24;
    cursor: pointer;
}
.star-opt {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.star-opt:hover {
    transform: scale(1.25);
}

.btn-hub {
    padding: 1.1rem 2.2rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.3);
}
.btn-hub.primary {
    background: var(--primary);
    color: #fff;
}
.btn-hub.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.4);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsiveness */
@media (max-width: 900px) {
    .stats-row {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-md);
    }
    .stat-divider {
        display: none;
    }
    .stat-item {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hub-container {
        padding: 4.5rem 1rem 1rem;
        gap: 2.5rem;
    }
    .hero {
        margin-top: 4.5rem;
    }
    .hero h1 {
        font-size: 2.15rem;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .tool-card {
        height: 220px;
        padding: 1.25rem 1rem;
        border-radius: 20px;
    }
    .tool-card-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.45rem;
        top: 8px;
        right: 8px;
        border-radius: 6px;
    }
    .tool-featured-img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }
    .tool-card:hover .tool-featured-img {
        transform: scale(0.96) translateY(-6px);
    }
    .tool-icon-wrapper {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 1.6rem;
    }
    .tool-card:hover .tool-icon-wrapper {
        transform: scale(1.05) translateY(-3px);
    }
    .tool-info h2 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }
    .tool-card:hover .tool-info {
        transform: translateY(-24px);
    }
    .tool-card:hover .tool-info p {
        font-size: 0.72rem;
        max-height: 55px;
        line-height: 1.35;
    }
    .tool-card:hover .btn-arrow {
        font-size: 0.7rem;
        max-height: 30px;
        margin-top: 0.4rem;
    }
    .feature-item {
        padding: 2rem 1.5rem;
    }
    .feedback-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Quick Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    display: none !important;
}

.auth-tab.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* App Footer Styles */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.app-footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}
.app-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.app-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.app-footer .footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .app-footer {
        padding: 2rem 1rem;
        gap: 1rem;
    }
    .app-footer p {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    .app-footer .footer-links {
        gap: 0.75rem 1.25rem;
    }
    .app-footer .footer-links a {
        font-size: 0.8rem;
    }
}

