/* ================================================
   Tool.host - Clean, Modern, Minimal Homepage
   ================================================ */

/* Variables */
:root {
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-subtle: #f8fafc;
    --border-light: #e2e8f0;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme-style="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-subtle: #1e293b;
    --border-light: #334155;
}

/* ================================================
   Full Page Animated Background
   ================================================ */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.page-background * {
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0 80px;
    min-height: 420px;
}

.hero-container {
    position: relative;
    z-index: 10;
}

/* Content sections need readable backgrounds */
.content-section {
    position: relative;
}

/* Stars Layer */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 370px 50px, #fff, transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 520px 90px, #fff, transparent),
        radial-gradient(2px 2px at 600px 200px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 680px 60px, #fff, transparent),
        radial-gradient(2px 2px at 750px 140px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 820px 100px, #fff, transparent),
        radial-gradient(2px 2px at 900px 220px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: twinkle 4s ease-in-out infinite;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 50px 60px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 120px 140px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 200px 90px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 280px 200px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 350px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 420px 160px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 500px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 580px 180px, rgba(255,255,255,0.4), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: twinkle 6s ease-in-out infinite 1s;
    opacity: 0.8;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 80px 100px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 180px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 260px 170px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 340px 80px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 440px 140px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: twinkle 8s ease-in-out infinite 2s;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Shooting Stars */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shooting-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #fff, transparent);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255,255,255,0.6);
    animation: shooting 3s linear infinite;
    opacity: 0;
}

.shooting-stars span::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    border-radius: 50%;
}

.shooting-stars span:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.shooting-stars span:nth-child(2) {
    top: 25%;
    left: 60%;
    animation-delay: 0.8s;
    animation-duration: 3s;
}

.shooting-stars span:nth-child(3) {
    top: 5%;
    left: 80%;
    animation-delay: 1.6s;
    animation-duration: 2.8s;
}

.shooting-stars span:nth-child(4) {
    top: 40%;
    left: 30%;
    animation-delay: 2.4s;
    animation-duration: 3.2s;
}

.shooting-stars span:nth-child(5) {
    top: 15%;
    left: 45%;
    animation-delay: 3.2s;
    animation-duration: 2.6s;
}

.shooting-stars span:nth-child(6) {
    top: 35%;
    left: 75%;
    animation-delay: 4s;
    animation-duration: 2.9s;
}

.shooting-stars span:nth-child(7) {
    top: 8%;
    left: 10%;
    animation-delay: 4.8s;
    animation-duration: 3.1s;
}

.shooting-stars span:nth-child(8) {
    top: 30%;
    left: 55%;
    animation-delay: 5.6s;
    animation-duration: 2.7s;
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(315deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(400px) translateY(400px) rotate(315deg);
        opacity: 0;
    }
}

/* Aurora Effect */
.aurora {
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 150%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: aurora 15s ease-in-out infinite;
    filter: blur(40px);
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateX(30px) translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
    66% {
        transform: translateX(-20px) translateY(10px) scale(0.98);
        opacity: 0.7;
    }
}

/* Light mode adjustments - use a gradient instead */
[data-theme-style="light"] .hero-section {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-subtitle .highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Search Bar - Glassmorphism on dark background */
.hero-search {
    margin-bottom: 36px;
}

.search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 18px 80px 18px 52px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-shortcut {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    color: rgba(255,255,255,0.7);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.15);
    text-decoration: none;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    color: #a5b4fc;
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    transition: all 0.15s ease;
}

.search-result-item:hover .search-result-arrow {
    color: #a5b4fc;
    transform: translateX(4px);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: white;
    text-decoration: none;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ================================================
   Sections
   ================================================ */
.section-spacing {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-title i {
    margin-right: 8px;
    color: #a5b4fc;
}

.section-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.text-orange {
    color: #fb923c;
}

/* ================================================
   Category Cards - Fully Clickable
   ================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-section {
    /* Grid item */
}

.category-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-header-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-header-link:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.category-header-link:hover .category-icon {
    transform: scale(1.05);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--category-color) 12%, transparent);
    color: var(--category-color);
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.category-text {
    text-align: left;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
}

.category-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    max-width: 400px;
}

.category-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.category-header-link:hover .category-arrow {
    color: #a5b4fc;
}

@media (max-width: 640px) {
    .category-header-link {
        padding: 16px;
    }
    
    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-desc {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-arrow {
        display: none;
    }
}

/* ================================================
   FAQ Section
   ================================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255,255,255,0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    color: #a5b4fc;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0;
}

/* ================================================
   CTA Section
   ================================================ */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius-xl);
    color: white;
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-content p {
    opacity: 0.9;
    margin: 0;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: #6366f1;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #6366f1;
    text-decoration: none;
}

/* ================================================
   Blog Grid
   ================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: block;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
}

/* ================================================
   Responsive Adjustments
   ================================================ */
@media (max-width: 640px) {
    .hero-section {
        padding: 48px 0 40px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .category-header {
        padding: 16px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeInUp 0.4s ease-out;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-lg);
}

[data-theme-style="dark"] .loading-overlay {
    background: rgba(30,41,59,0.8);
}

/* ================================================
   Pricing Plans Section
   ================================================ */
.pricing-card {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.pricing-card:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4) !important;
}

.pricing-tag {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 12px 12px;
}

.pricing-card .h1 {
    color: #ffffff !important;
    font-weight: 700;
}

.pricing-card .card-body {
    color: rgba(255,255,255,0.9);
}

.pricing-card .font-weight-bold {
    color: #a5b4fc !important;
}

.pricing-card .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
}

.pricing-card ul li {
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    margin-right: 8px;
    color: #a5b4fc;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 100px !important;
    transition: all 0.2s ease;
}

.pricing-card .btn-primary:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5) !important;
}

.pricing-card .btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Frequency Selector */
.btn-group-custom {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 4px;
    display: inline-flex;
}

.btn-group-custom label {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 100px !important;
    transition: all 0.2s ease;
    margin: 0;
}

.btn-group-custom label:hover {
    color: rgba(255,255,255,0.9) !important;
}

.btn-group-custom label.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Currency Dropdown */
#currency_switch {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.9) !important;
    border-radius: 100px !important;
}

#currency_switch:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.dropdown-menu {
    background: rgba(15, 12, 41, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.dropdown-item {
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #ffffff !important;
}

/* ================================================
   Navigation Menu
   ================================================ */
.navbar {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-lg) !important;
    padding: 12px 24px !important;
    position: relative;
    z-index: 1000;
}

/* Force white text and remove conflicting Bootstrap default styles */
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand:hover {
    color: #ffffff !important;
}

.navbar-logo {
    max-height: 40px;
}

.navbar-custom-toggler {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.9) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.navbar-custom-toggler:hover,
.navbar-custom-toggler:focus {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.navbar-custom-toggler:active {
    background: rgba(255,255,255,0.2) !important;
}

/* Fix Bootstrap toggler icon color */
.navbar-light .navbar-toggler-icon {
    background-image: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link.active {
    color: #a5b4fc !important;
    background: rgba(99, 102, 241, 0.15);
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.navbar .dropdown-toggle::after {
    color: rgba(255,255,255,0.6);
}

.navbar .dropdown-menu {
    background: rgba(15, 12, 41, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
    margin-top: 8px !important;
    position: absolute;
    z-index: 1050;
}

.navbar .dropdown-item {
    color: rgba(255,255,255,0.8) !important;
    padding: 10px 16px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1051;
    pointer-events: auto;
    cursor: pointer;
}

.navbar .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #ffffff !important;
}

.navbar .dropdown-item.active {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #ffffff !important;
}

/* Ensure dropdown toggle is clickable */
.navbar .dropdown-toggle {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

.navbar .dropdown-divider {
    border-color: rgba(255,255,255,0.1);
}

/* Notification bell */
.fa-layers .fa-layers-counter {
    background: #ef4444 !important;
}

/* Mobile menu */
@media (max-width: 992px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(15, 12, 41, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 12px;
        position: relative;
        z-index: 999;
    }

    .navbar-nav {
        gap: 4px;
        position: relative;
        z-index: 999;
    }

    .navbar-nav .nav-item {
        margin: 4px 0;
        position: relative;
        z-index: 999;
    }

    .navbar-nav .nav-item .nav-link {
        position: relative;
        z-index: 999;
        display: block;
        pointer-events: auto;
    }

    .navbar-custom-toggler i {
        color: rgba(255,255,255,0.9);
    }
}
