   :root {
            --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
            --secondary-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
            --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            --dark-bg: #0f0f23;
            --card-bg: rgba(255, 255, 255, 0.05);
            --card-border: rgba(255, 255, 255, 0.1);
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Animated background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(217, 70, 239, 0.3) 0%, transparent 50%);
            z-index: -1;
            animation: gradientShift 15s ease-in-out infinite;
        }

        @keyframes gradientShift {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 0.6; }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* Header */
        .header {
            background: rgba(15, 15, 35, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--card-border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Professional User Profile Dropdown Styles */
        .user-profile-dropdown {
            padding: 0.75rem 1rem;
            border-radius: 12px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid transparent;
            text-decoration: none !important;
            color: var(--text-primary) !important;
            min-width: 140px;
        }

        .user-profile-dropdown:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
            color: var(--text-primary) !important;
        }

        .user-avatar-wrapper {
            display: flex;
            align-items: center;
            position: relative;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .user-avatar::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: var(--primary-gradient);
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .user-profile-dropdown:hover .user-avatar::before {
            opacity: 1;
        }

        .premium-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: white;
            border: 2px solid var(--dark-bg);
            z-index: 10;
            animation: premiumPulse 2s ease-in-out infinite;
        }

        @keyframes premiumPulse {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
            }
            50% { 
                transform: scale(1.1);
                box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
            }
        }

        .user-status-indicator {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 10px;
            height: 10px;
            background: #10b981;
            border-radius: 50%;
            border: 2px solid var(--dark-bg);
            animation: statusBlink 3s ease-in-out infinite;
        }

        @keyframes statusBlink {
            0%, 50%, 100% { opacity: 1; }
            25%, 75% { opacity: 0.5; }
        }

        .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-primary);
            line-height: 1.2;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: help;
            transition: all 0.3s ease;
            position: relative;
        }

        .user-name:hover {
            color: #6366f1;
            transform: translateX(2px);
        }

        /* Tooltip for full username */
        .user-name[title]:hover::after {
            content: attr(title);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 15, 35, 0.95);
            color: white;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            font-size: 0.8rem;
            white-space: nowrap;
            z-index: 1000;
            border: 1px solid rgba(99, 102, 241, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            animation: tooltipFadeIn 0.2s ease-out;
            margin-bottom: 0.5rem;
        }

        .user-name[title]:hover::before {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid rgba(15, 15, 35, 0.95);
            z-index: 1001;
            margin-bottom: -1px;
        }

        @keyframes tooltipFadeIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .user-tier {
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1;
            margin-top: 2px;
            padding: 2px 6px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .user-tier.premium {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: white;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .user-tier.free {
            background: rgba(107, 114, 128, 0.2);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.3);
        }

        .dropdown-chevron {
            font-size: 0.8rem;
            transition: transform 0.3s ease;
            color: var(--text-secondary);
        }

        .user-profile-dropdown[aria-expanded="true"] .dropdown-chevron {
            transform: rotate(180deg);
            color: #6366f1;
        }

        .user-profile-dropdown:hover .dropdown-chevron {
            color: #6366f1;
        }

        /* Enhanced dropdown menu */
        .dropdown-menu.dropdown-glow {
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 16px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(99, 102, 241, 0.1);
            padding: 0.75rem 0;
            margin-top: 0.5rem;
            min-width: 200px;
        }

        .dropdown-menu.dropdown-glow .dropdown-item {
            padding: 0.75rem 1.25rem;
            color: var(--text-primary);
            transition: all 0.3s ease;
            border: none;
            background: transparent;
        }

        .dropdown-menu.dropdown-glow .dropdown-item:hover {
            background: rgba(99, 102, 241, 0.1);
            color: white;
            padding-left: 1.5rem;
        }

        .dropdown-menu.dropdown-glow .dropdown-item.text-warning:hover {
            background: rgba(251, 191, 36, 0.1);
            color: #fbbf24;
        }

        .dropdown-menu.dropdown-glow .dropdown-item.text-danger:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #f87171;
        }

        /* Hero Section */
        .hero {
            min-height: 90vh;
            display: flex;
            align-items: center;
            position: relative;
            padding: 5rem 0;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 60%;
            height: 150%;
            background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            z-index: -1;
            animation: pulse 8s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            0% { opacity: 0.6; }
            100% { opacity: 1; }
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2);
            padding: 0.5rem 1rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #a5b4fc;
        }

        .hero-title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .hero-title .highlight {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            display: inline-block;
        }

        .hero-title .highlight::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 8px;
            background: var(--primary-gradient);
            opacity: 0.3;
            z-index: -1;
            border-radius: 10px;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 600px;
            line-height: 1.6;
        }

        .hero-cta {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }

        .hero-btn {
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .hero-btn.primary {
            background: var(--primary-gradient);
            border: none;
            color: white;
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
        }

        .hero-btn.secondary {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
        }

        .hero-btn:hover {
            transform: translateY(-3px);
        }

        .hero-btn.primary:hover {
            box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
        }

        .hero-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .hero-metrics {
            display: flex;
            gap: 2.5rem;
        }

        .metric {
            position: relative;
        }

        .metric:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -1.25rem;
            top: 50%;
            transform: translateY(-50%);
            height: 60%;
            width: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .metric-value {
            font-size: 1.75rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.25rem;
        }

        .metric-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .hero-graphic {
            position: relative;
            width: 100%;
            height: 350px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            border: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .waveform-container {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            gap: 12px;
        }

        .waveform-bar {
            width: 8px;
            height: 80px;
            background: var(--primary-gradient);
            border-radius: 30px;
            animation: waveform 1.5s ease-in-out infinite;
        }

        .waveform-bar:nth-child(1) { animation-delay: 0s; }
        .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
        .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
        .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
        .waveform-bar:nth-child(5) { animation-delay: 0.4s; }
        .waveform-bar:nth-child(6) { animation-delay: 0.5s; }
        .waveform-bar:nth-child(7) { animation-delay: 0.6s; }

        @keyframes waveform {
            0%, 100% { height: 60px; }
            50% { height: 180px; }
        }

        .floating-icons {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }

        .float-icon {
            position: absolute;
            width: 50px;
            height: 50px;
            background: var(--primary-gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
            animation: float 6s ease-in-out infinite;
        }

        .float-icon:nth-child(1) {
            top: 20%;
            left: 15%;
            animation-delay: 0s;
        }

        .float-icon:nth-child(2) {
            bottom: 25%;
            right: 20%;
            animation-delay: 2s;
        }

        .float-icon:nth-child(3) {
            top: 40%;
            right: 15%;
            animation-delay: 4s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        /* Glass Card */
        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            box-shadow: var(--glass-shadow);
            transition: all 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(31, 38, 135, 0.4);
        }

        /* Main App Container */
        .app-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Voice Selection Section */
        .voice-section {
            margin-bottom: 3rem;
        }

        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .voice-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 1.5rem;
            border: 1px solid var(--card-border);
            background: var(--card-bg);
            color: var(--text-primary);
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--primary-gradient);
            border-color: transparent;
            transform: translateY(-2px);
        }

        /* Voice Header Controls */
        .voice-header-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .voice-view-controls {
            display: flex;
            gap: 0.5rem;
        }

        .view-toggle-btn {
            background: var(--card-bg);
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
        }

        .view-toggle-btn:hover {
            border-color: #6366f1;
            color: #6366f1;
        }

        .view-toggle-btn.active {
            background: var(--primary-gradient);
            color: white;
            border-color: #6366f1;
        }

        /* Voice Grid Styles */
        .voice-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .voice-grid.compact-view {
            grid-template-columns: 1fr;
            gap: 0.5rem;
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .voice-grid.compact-view::-webkit-scrollbar {
            width: 6px;
        }

        .voice-grid.compact-view::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .voice-grid.compact-view::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 3px;
        }

        /* Compact Voice Card Styles */
        .voice-card.compact {
            padding: 0.75rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            min-height: auto;
            margin-bottom: 0;
        }

        .voice-card.compact .voice-header {
            margin-bottom: 0;
            flex: 1;
            gap: 0.75rem;
        }

        .voice-card.compact .voice-avatar {
            width: 35px;
            height: 35px;
            min-width: 35px;
            font-size: 0.9rem;
        }

        .voice-card.compact .voice-name {
            font-size: 0.85rem;
            margin-bottom: 0.15rem;
        }

        .voice-card.compact .voice-meta {
            margin-bottom: 0;
        }

        .voice-card.compact .voice-description {
            display: none;
        }

        .voice-card.compact .voice-play-btn {
            position: static;
            margin-left: auto;
            width: 32px;
            height: 32px;
        }

        .voice-card.compact:hover {
            transform: translateX(5px);
        }

        .voice-card.compact.selected {
            transform: translateX(5px);
            border-left: 4px solid #6366f1;
        }

        /* Dropdown Styles */
        .voice-dropdown-container {
            margin-bottom: 2rem;
        }

        .voice-search-box {
            position: relative;
            margin-bottom: 1rem;
        }

        .voice-search-input {
            width: 100%;
            padding: 0.75rem 3rem 0.75rem 1rem;
            background: var(--card-bg);
            border: 2px solid transparent;
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .voice-search-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        .voice-search-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        .selected-voice-display {
            background: var(--card-bg);
            border: 2px solid transparent;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .selected-voice-display:hover {
            border-color: #6366f1;
        }

        .selected-voice-display.has-selection {
            border-color: #6366f1;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
        }

        .no-voice-selected {
            color: var(--text-secondary);
            text-align: center;
            font-style: italic;
        }

        .selected-voice-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .selected-voice-info .voice-avatar {
            width: 40px;
            height: 40px;
            min-width: 40px;
        }

        .voice-dropdown-list {
            background: var(--card-bg);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }

        .voice-dropdown-list.show {
            display: block;
        }

        .voice-dropdown-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .voice-dropdown-item:last-child {
            border-bottom: none;
        }

        .voice-dropdown-item:hover {
            background: rgba(99, 102, 241, 0.1);
        }

        .voice-dropdown-item.selected {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
        }

        .voice-dropdown-item .voice-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            font-size: 0.8rem;
        }

        .voice-dropdown-item .voice-info {
            flex: 1;
        }

        .voice-dropdown-item .voice-name {
            font-size: 0.9rem;
            margin-bottom: 0.2rem;
        }

        .voice-dropdown-item .voice-meta {
            margin-bottom: 0;
        }

        .voice-dropdown-item .voice-category {
            font-size: 0.75rem;
        }

        .voice-dropdown-item .voice-gender {
            font-size: 0.7rem;
            padding: 0.1rem 0.4rem;
        }

        /* Voice Count Indicators */
        .voice-count {
            background: rgba(99, 102, 241, 0.2);
            color: #6366f1;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.5rem;
            border-radius: 10px;
            margin-left: 0.5rem;
            display: inline-block;
            min-width: 1.5rem;
            text-align: center;
        }

        .filter-btn.active .voice-count {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .voice-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 2px solid transparent;
            border-radius: 16px;
            padding: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .voice-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .voice-card:hover::before {
            opacity: 0.1;
        }

        .voice-card.selected {
            border-color: #6366f1;
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
        }

        .voice-card.selected::before {
            opacity: 0.15;
        }
        
        .voice-card.selected .voice-name {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .voice-header {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            gap: 0.75rem;
        }

        .voice-avatar {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 700;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .voice-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .voice-info {
            flex: 1;
        }

        .voice-name {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
            line-height: 1.2;
            word-break: break-word;
        }

        .voice-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .voice-gender {
            font-size: 0.65rem;
            padding: 0.15rem 0.5rem;
            background: var(--secondary-gradient);
            border-radius: 10px;
            color: white;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
        }

        .voice-gender.male {
            background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
        }

        .voice-gender.female {
            background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
        }

        .voice-category {
            font-size: 0.65rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .voice-description {
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-align: left;
            line-height: 1.3;
            margin-bottom: 0.75rem;
            height: 2.8em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .voice-play-btn {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--primary-gradient);
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: auto;
            color: white;
        }

        .voice-play-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
        }

        .voice-play-btn i {
            font-size: 0.75rem;
        }

        /* Hide single voice grid in multi-speaker mode */
        .voice-section.multi-mode {
            display: none;
        }

        /* Text Input Section */
        .text-section {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .form-label {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            display: block;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            color: var(--text-primary);
            padding: 1rem 1.5rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            width: 100%;
            resize: vertical;
        }

        .form-control:focus {
            outline: none;
            color: white;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
            background: rgba(255, 255, 255, 0.08);
        }

        .form-control::placeholder {
            color: var(--text-secondary);
        }

        /* Generate Button */
        .generate-btn {
            background: var(--primary-gradient);
            border: none;
            border-radius: 16px;
            color: white;
            padding: 1rem 3rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .generate-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
        }

        .generate-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .generate-btn .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Audio Player */
        .audio-player {
            background: rgba(15, 15, 35, 0.3);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 24px;
            padding: 2rem;
            margin-top: 2rem;
            text-align: center;
            display: none;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
            transition: all 0.4s ease;
        }

        .audio-player::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(
                transparent, 
                rgba(99, 102, 241, 0.1), 
                transparent 30%
            );
            animation: rotateGradient 8s linear infinite;
            z-index: -1;
        }

        .audio-player::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 24px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), rgba(217, 70, 239, 0.3));
            -webkit-mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .audio-player.show {
            display: block;
            animation: holographicReveal 1.2s cubic-bezier(0.17, 0.67, 0.46, 0.99);
        }
        
        .audio-player:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 50px rgba(99, 102, 241, 0.35);
        }

        @keyframes holographicReveal {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
                filter: brightness(0.5) blur(10px);
            }
            50% {
                opacity: 0.7;
                filter: brightness(1.2) blur(5px);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: brightness(1) blur(0);
            }
        }
        
        @keyframes rotateGradient {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Mindblowing Results Section Styles */
        .holographic-container {
            position: relative;
            z-index: 1;
        }
        
        .result-title {
            font-weight: 800;
            font-size: 1.75rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
            transform: perspective(500px) translateZ(0);
            transition: all 0.3s ease;
        }
        
        .result-title:hover {
            transform: perspective(500px) translateZ(20px);
        }
        
        .result-title i {
            animation: starPulse 2s infinite;
        }
        
        @keyframes starPulse {
            0%, 100% { opacity: 0.7; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.2); }
        }
        
        .audio-visualizer-container {
            position: relative;
            margin: 2rem 0;
        }
        
        .audio-visualizer {
            height: 100px;
            width: 100%;
            position: absolute;
            top: -40px;
            left: 0;
            right: 0;
            pointer-events: none;
            z-index: 1;
        }
        
        .visualizer-bars {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            height: 100%;
            gap: 6px;
        }
        
        .bar {
            width: 6px;
            height: 20px;
            background: linear-gradient(to top, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.8));
            border-radius: 10px;
            transition: height 0.2s ease;
        }
        
        @keyframes equalizer {
            0% { height: 20px; }
            10% { height: 40px; }
            20% { height: 15px; }
            30% { height: 35px; }
            40% { height: 25px; }
            50% { height: 45px; }
            60% { height: 30px; }
            70% { height: 20px; }
            80% { height: 35px; }
            90% { height: 15px; }
            100% { height: 20px; }
        }
        
        .bar-1 { animation: equalizer 1.1s ease-in-out infinite; }
        .bar-2 { animation: equalizer 1.2s ease-in-out infinite 0.1s; }
        .bar-3 { animation: equalizer 0.9s ease-in-out infinite 0.2s; }
        .bar-4 { animation: equalizer 1.3s ease-in-out infinite 0.1s; }
        .bar-5 { animation: equalizer 1s ease-in-out infinite 0.15s; }
        .bar-6 { animation: equalizer 1.2s ease-in-out infinite 0.25s; }
        .bar-7 { animation: equalizer 1.1s ease-in-out infinite 0.1s; }
        .bar-8 { animation: equalizer 0.8s ease-in-out infinite 0.2s; }
        .bar-9 { animation: equalizer 1.3s ease-in-out infinite 0.15s; }
        .bar-10 { animation: equalizer 1s ease-in-out infinite 0.1s; }
        .bar-11 { animation: equalizer 1.2s ease-in-out infinite 0.25s; }
        .bar-12 { animation: equalizer 0.9s ease-in-out infinite 0.2s; }
        
        .futuristic-audio {
            width: 100%;
            border-radius: 12px;
            background: rgba(15, 15, 35, 0.4);
            border: 1px solid rgba(99, 102, 241, 0.2);
            padding: 5px;
            margin-top: 50px;
            z-index: 2;
            position: relative;
        }
        
        .futuristic-audio::-webkit-media-controls-panel {
            background: rgba(15, 15, 35, 0.6);
        }
        
        .futuristic-audio::-webkit-media-controls-play-button,
        .futuristic-audio::-webkit-media-controls-timeline,
        .futuristic-audio::-webkit-media-controls-volume-slider {
            filter: hue-rotate(200deg) saturate(1.5);
        }
        
        .result-metadata {
            display: flex;
            justify-content: center;
            gap: 2rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        .metadata-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .metadata-item i {
            font-size: 1.1rem;
            color: #6366f1;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        
        .glow-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
            border: none;
            overflow: hidden;
            z-index: 1;
            cursor: pointer;
            background-color: rgba(15, 15, 35, 0.4);
            color: white;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .glow-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50px;
            padding: 2px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: -1;
            transition: all 0.3s ease;
        }
        
        .glow-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        }
        
        .glow-btn:active {
            transform: translateY(1px);
        }
        
        .download-btn {
            background-color: rgba(99, 102, 241, 0.2);
        }
        
        .replay-btn {
            background-color: rgba(14, 165, 233, 0.2);
        }
        
        .share-btn {
            background-color: rgba(217, 70, 239, 0.2);
        }
        
        .floating-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }
        
        .floating-particles::before,
        .floating-particles::after {
            content: '';
            position: absolute;
            background-color: rgba(99, 102, 241, 0.4);
            border-radius: 50%;
            filter: blur(4px);
        }
        
        .floating-particles::before {
            width: 13px;
            height: 13px;
            top: 20%;
            left: 15%;
            animation: floatParticle 12s infinite ease-in-out alternate;
            opacity: 0.6;
        }
        
        .floating-particles::after {
            width: 8px;
            height: 8px;
            bottom: 30%;
            right: 20%;
            animation: floatParticle 10s infinite ease-in-out alternate-reverse;
            opacity: 0.4;
            background-color: rgba(217, 70, 239, 0.4);
        }
        
        @keyframes floatParticle {
            0% { transform: translate(0, 0); }
            50% { transform: translate(20px, -15px); }
            100% { transform: translate(-15px, 10px); }
        }
        
        .glow-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(30px);
            z-index: -1;
            opacity: 0.2;
        }
        
        .orb-left {
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, #6366f1, transparent 70%);
            top: -20px;
            left: -20px;
            animation: orbPulse 8s infinite alternate;
        }
        
        .orb-right {
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, #d946ef, transparent 70%);
            bottom: -20px;
            right: -20px;
            animation: orbPulse 6s infinite alternate-reverse;
        }
        
        @keyframes orbPulse {
            0% { transform: scale(1); opacity: 0.2; }
            50% { transform: scale(1.2); opacity: 0.25; }
            100% { transform: scale(0.9); opacity: 0.15; }
        }

        .download-btn {
            background: var(--accent-gradient);
            border: none;
            border-radius: 12px;
            color: white;
            padding: 0.75rem 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
        }

        /* Alert Messages */
        .alert {
            padding: 1rem 1.5rem;
            border-radius: 16px;
            margin-bottom: 1.5rem;
            border: 1px solid;
        }

        .alert-error {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }

        .alert-success {
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.3);
            color: #86efac;
        }

        /* Mode Selection */
        .mode-selection {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: center;
        }

        .mode-btn {
            padding: 0.75rem 2rem;
            border: 2px solid var(--card-border);
            background: var(--card-bg);
            color: var(--text-primary);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .mode-btn.active {
            border-color: #6366f1;
            background: rgba(99, 102, 241, 0.1);
        }

        /* Multi-speaker section */
        .multi-speaker-section {
            display: none;
            margin-top: 2rem;
        }

        .multi-speaker-section.show {
            display: block;
        }

        .speaker-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            position: relative;
        }

        .speaker-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1rem;
        }

        .speaker-name-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            color: var(--text-primary);
            padding: 0.75rem 1rem;
            font-size: 0.95rem;
            flex: 1;
        }

        .remove-speaker-btn {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
            border-radius: 8px;
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-size: 0.875rem;
        }

        .add-speaker-btn {
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid rgba(34, 197, 94, 0.3);
            color: #86efac;
            border-radius: 12px;
            padding: 0.75rem 2rem;
            cursor: pointer;
            font-weight: 600;
            margin-top: 1rem;
            width: 100%;
        }

        /* How It Works Modal */
        .modal-content {
            background: var(--dark-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            box-shadow: var(--glass-shadow);
        }

        .modal-title {
            font-weight: 700;
            font-size: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .modal-header, .modal-footer {
            border-color: rgba(255, 255, 255, 0.05);
        }

        .btn-close {
            filter: invert(1) brightness(0.8);
        }

        .how-it-works-steps {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            padding: 1rem 0;
        }

        .step {
            display: flex;
            gap: 1.5rem;
        }

        .step-icon {
            font-size: 2rem;
            color: #6366f1;
            flex-shrink: 0;
        }

        .step-content h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .step-content p {
            color: var(--text-secondary);
            margin-bottom: 0;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        .feature-modal-description {
            color: var(--text-secondary);
            font-size: 1.05rem;
            line-height: 1.8;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .app-container {
                padding: 1rem;
            }
            
            .voice-header-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .voice-header-controls .section-title {
                margin-bottom: 0;
            }

            /* Mobile User Profile Adjustments */
            .user-profile-dropdown {
                min-width: auto;
                padding: 0.5rem 0.75rem;
            }

            .user-avatar {
                width: 32px;
                height: 32px;
                font-size: 1.25rem;
            }

            .premium-badge {
                width: 18px;
                height: 18px;
                font-size: 0.7rem;
                top: -6px;
                right: -6px;
            }

            .user-info {
                display: none !important;
            }

            .dropdown-menu.dropdown-glow {
                min-width: 180px;
                margin-top: 0.25rem;
            }
        }

        @media (max-width: 991px) and (min-width: 769px) {
            /* Medium screens - shorter username display */
            .user-name {
                max-width: 80px;
                font-size: 0.85rem;
            }
            
            .user-tier {
                font-size: 0.7rem;
                padding: 1px 4px;
            }
        }

        @media (max-width: 1200px) and (min-width: 992px) {
            /* Large screens - moderate truncation */
            .user-name {
                max-width: 90px;
            }
            
            .voice-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 0.75rem;
            }

            .voice-grid.compact-view {
                max-height: 300px;
            }
            
            .voice-header {
                flex-direction: row;
                align-items: center;
            }
            
            .hero {
                padding: 3rem 0;
                min-height: auto;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
                margin-bottom: 2rem;
            }
            
            .hero-cta {
                flex-direction: column;
                margin-bottom: 2rem;
            }
            
            .hero-btn {
                width: 100%;
                justify-content: center;
            }
            
            .hero-metrics {
                gap: 1.5rem;
                justify-content: center;
                margin-bottom: 2rem;
            }
            
            .hero-graphic {
                height: 260px;
            }
            
            .voice-filters {
                gap: 0.5rem;
            }
            
            .filter-btn {
                padding: 0.4rem 1rem;
                font-size: 0.9rem;
            }
            
            .voice-avatar {
                width: 36px;
                height: 36px;
                min-width: 36px;
                font-size: 0.9rem;
            }
            
            .voice-name {
                font-size: 0.8rem;
            }
            
            .voice-gender, .voice-category {
                font-size: 0.6rem;
            }
        }

        @media (max-width: 576px) {
            .hero-metrics {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
                text-align: center;
            }
            
            .metric:not(:last-child)::after {
                display: none;
            }
            
            .waveform-container {
                gap: 8px;
            }
            
            .waveform-bar {
                width: 6px;
            }
            
            .float-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }
        
        /* Navigation Styles */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(15, 15, 35, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(99, 102, 241, 0.2);
        }
        
        .navbar-dark .navbar-nav .nav-link {
            color: var(--text-primary);
            font-weight: 500;
            padding: 0.5rem 1rem;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .navbar-dark .navbar-nav .nav-link:hover,
        .navbar-dark .navbar-nav .nav-link.active {
            color: #6366f1;
        }
        
        .navbar-dark .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary-gradient);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .navbar-dark .navbar-nav .nav-link:hover::after,
        .navbar-dark .navbar-nav .nav-link.active::after {
            width: 80%;
        }
        
        .nav-glow {
            position: relative;
        }
        
        .nav-glow .nav-item {
            position: relative;
            z-index: 1;
        }
        
        .nav-icon {
            margin-right: 0.4rem;
            font-size: 0.9rem;
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .nav-highlight {
            background: rgba(99, 102, 241, 0.15);
            border-radius: 50px;
            margin: 0 0.5rem;
        }
        
        .nav-highlight:hover {
            background: rgba(99, 102, 241, 0.25);
            transform: translateY(-2px);
        }
        
        .nav-btn {
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .login-btn {
            background: transparent;
            border: 1px solid rgba(99, 102, 241, 0.5);
            color: #6366f1;
        }
        
        .login-btn:hover {
            background: rgba(99, 102, 241, 0.1);
            transform: translateY(-2px);
        }
        
        .signup-btn {
            background: var(--primary-gradient);
            border: none;
            color: white;
        }
        
        .signup-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
        }
        
        .dropdown-glow {
            background: rgba(15, 15, 35, 0.95);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            overflow: hidden;
        }
        
        .dropdown-item {
            color: var(--text-primary);
            padding: 0.75rem 1.5rem;
            transition: all 0.3s ease;
        }
        
        .dropdown-item:hover {
            background: rgba(99, 102, 241, 0.1);
            color: #6366f1;
        }
        
        .dropdown-divider {
            border-color: rgba(99, 102, 241, 0.2);
        }
        
        @media (max-width: 991px) {
            .navbar-collapse {
                background: rgba(15, 15, 35, 0.95);
                backdrop-filter: blur(10px);
                border-radius: 16px;
                padding: 1.5rem;
                margin-top: 1rem;
                border: 1px solid rgba(99, 102, 241, 0.2);
            }
            
            .nav-btn {
                width: 100%;
                margin-bottom: 0.5rem;
                text-align: center;
            }
        }
        
        /* Footer Styles */
        .site-footer {
            background: rgba(15, 15, 35, 0.8);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(99, 102, 241, 0.2);
            padding: 5rem 0 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .footer-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }
        
        .footer-orb {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            filter: blur(70px);
        }
        
        .footer-orb-1 {
            width: 400px;
            height: 400px;
            background: #6366f1;
            top: -200px;
            right: -100px;
        }
        
        .footer-orb-2 {
            width: 300px;
            height: 300px;
            background: #d946ef;
            bottom: -100px;
            left: 10%;
        }
        
        .footer-wave {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill: %230f0f23;'%3E%3C/path%3E%3C/svg%3E");
            background-size: cover;
            transform: scaleY(-1);
        }
        
        .footer-content {
            position: relative;
            z-index: 1;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            display: inline-block;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .footer-text {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            max-width: 350px;
            font-size: 0.95rem;
            line-height: 1.7;
        }
        
        .footer-heading {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
        }
        
        .footer-links a:hover {
            color: #6366f1;
            transform: translateX(5px);
        }
        
        .footer-links a i {
            margin-right: 0.5rem;
            font-size: 0.9rem;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }
        
        .social-link:hover {
            background: var(--primary-gradient);
            color: white;
            transform: translateY(-5px);
        }
        
        .newsletter-form {
            position: relative;
            margin-top: 1.5rem;
        }
        
        .newsletter-input {
            width: 100%;
            padding: 1rem 1rem 1rem 3rem;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: var(--text-primary);
            font-size: 0.9rem;
        }
        
        .newsletter-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }
        
        .newsletter-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #6366f1;
        }
        
        .newsletter-btn {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            padding: 0 1.5rem;
            border-radius: 50px;
            background: var(--primary-gradient);
            border: none;
            color: white;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .newsletter-btn:hover {
            transform: translateX(-2px);
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 1.5rem;
            margin-top: 4rem;
        }
        
        .footer-copyright {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        
        .footer-policy-links {
            display: flex;
            gap: 1.5rem;
        }
        
        .footer-policy-links a {
            color: var(--text-secondary);
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-policy-links a:hover {
            color: #6366f1;
        }
        
        @media (max-width: 768px) {
            .site-footer {
                padding: 3rem 0 1.5rem;
            }
            
            .footer-col {
                margin-bottom: 2rem;
            }
            
            .footer-bottom {
                text-align: center;
            }
            
            .footer-policy-links {
                margin-top: 1rem;
                justify-content: center;
                flex-wrap: wrap;
            }
        }

        /* Mindblowing Features Section */
        .features-section {
            padding: 5rem 0;
            position: relative;
            overflow: hidden;
            background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(15, 15, 35, 0.9) 100%);
        }
        
        .features-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }
        
        .floating-orb {
            position: absolute;
            border-radius: 50%;
            opacity: 0.15;
            filter: blur(60px);
        }
        
        .orb-1 {
            width: 300px;
            height: 300px;
            background: #6366f1;
            top: -100px;
            right: 10%;
            animation: floatOrb 20s ease-in-out infinite alternate;
        }
        
        .orb-2 {
            width: 400px;
            height: 400px;
            background: #8b5cf6;
            bottom: -150px;
            left: -100px;
            animation: floatOrb 25s ease-in-out infinite alternate-reverse;
        }
        
        .orb-3 {
            width: 200px;
            height: 200px;
            background: #d946ef;
            top: 40%;
            right: -50px;
            animation: floatOrb 15s ease-in-out infinite alternate;
        }
        
        .floating-lines {
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
                              linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            animation: floatLines 60s linear infinite;
        }
        
        @keyframes floatOrb {
            0% { transform: translate(0, 0) rotate(0deg); }
            100% { transform: translate(30px, 30px) rotate(180deg); }
        }
        
        @keyframes floatLines {
            0% { transform: translateY(0); }
            100% { transform: translateY(40px); }
        }
        
        .features-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
        }

        .features-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
        }

        .section-header {
            margin-bottom: 4rem;
            position: relative;
            z-index: 1;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 1;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid var(--card-border);
            padding: 2rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.3);
        }

        .feature-card:hover::before {
            opacity: 0.05;
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
            animation: pulse 2s infinite;
        }

        .feature-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .feature-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }
        
        .feature-btn {
            background: transparent;
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: #6366f1;
            border-radius: 8px;
            padding: 0.5rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .feature-btn:hover {
            background: rgba(99, 102, 241, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
        }

        /* FAQ Section */
.faq-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.9) 0%, var(--dark-bg) 100%);
}

.faq-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: pulsateCircle 15s ease-in-out infinite alternate;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #d946ef 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation: pulsateCircle 20s ease-in-out infinite alternate;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: floatParticles 60s linear infinite;
}

@keyframes pulsateCircle {
    0% { transform: scale(0.8); opacity: 0.1; }
    100% { transform: scale(1.2); opacity: 0.2; }
}

@keyframes floatParticles {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1fr, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.faq-question:hover::before {
    opacity: 0.05;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-icon i {
    transition: transform 0.4s ease;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Increased max-height to accommodate longer answers */
    padding: 1.5rem 2rem;
    opacity: 1;
    visibility: visible;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.faq-item.active .faq-icon i {
    /* We're now manually changing the icon class, so no rotation needed */
    transform: none;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }
}

        /* Dynamic particles and pulse effects */
        .dynamic-particle {
            position: absolute;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7));
            border-radius: 50%;
            filter: blur(4px);
            animation: floatDynamicParticle 20s infinite ease-in-out alternate;
            pointer-events: none;
            z-index: -1;
        }
        
        @keyframes floatDynamicParticle {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(50px, -30px); }
            50% { transform: translate(-20px, 40px); }
            75% { transform: translate(40px, 10px); }
        }
        
        .pulse-effect {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent 70%);
            transform: translate(-50%, -50%) scale(0);
            opacity: 0.8;
            z-index: 2;
            pointer-events: none;
            animation: pulseOut 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
        }
        
        @keyframes pulseOut {
            0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
            100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
        }

            /* Ringtone Maker Specific Styles */
        .ringtone-maker-section {
            min-height: 100vh;
            padding: 2rem 0;
            position: relative;
            background: var(--dark-bg);
        }

        .ringtone-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .ringtone-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .ringtone-title {
            font-size: 3rem;
            font-weight: 800;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .ringtone-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        /* File Upload Section */
        .upload-section {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 2px dashed var(--card-border);
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .upload-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: -1;
        }

        .upload-section:hover {
            border-color: rgba(99, 102, 241, 0.5);
            transform: translateY(-5px);
        }

        .upload-section:hover::before {
            left: 0;
            opacity: 0.05;
        }

        .upload-section.dragover {
            border-color: #6366f1;
            background: rgba(99, 102, 241, 0.1);
        }

        .upload-icon {
            font-size: 4rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .upload-text {
            font-size: 1.2rem;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .upload-subtext {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .file-input {
            display: none;
        }

        .upload-btn {
            background: var(--primary-gradient);
            border: none;
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            margin-top: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
        }

        /* Audio Editor Section */
        .audio-editor {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            display: none;
        }

        .audio-editor.show {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        .audio-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
        }

        .audio-meta {
            display: flex;
            gap: 2rem;
        }

        .meta-item {
            text-align: center;
        }

        .meta-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.2rem;
        }

        .meta-value {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Professional Audio Editor Container */
        .waveform-container {
            position: relative;
            width: 98%;
            background: linear-gradient(145deg, rgba(15, 15, 35, 0.9), rgba(30, 30, 60, 0.7));
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 0.5rem;
            min-height: 350px;
            overflow: hidden;
            backdrop-filter: blur(20px);
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .waveform-header {
            width: 100%;
            margin-bottom: 1rem;
            text-align: center;
            padding: 0;
        }

        .waveform-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .waveform-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
            opacity: 0.8;
        }

        /* Audio Timeline */
        .audio-timeline {
            position: relative;
            width: 100%;
            height: 220px;
            background: linear-gradient(180deg, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(20, 20, 40, 0.6) 50%, 
                rgba(0, 0, 0, 0.8) 100%);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            overflow: hidden;
            margin-bottom: 1rem;
        }

        /* Waveform Canvas */
        .waveform {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: crosshair;
            z-index: 1;
        }

        /* Professional Timeline Ruler */
        .timeline-ruler {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            height: 30px;
            background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 5;
            display: flex;
            align-items: center;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .timeline-tick {
            position: absolute;
            height: 100%;
            border-left: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            padding-left: 4px;
            font-weight: 500;
        }

        .timeline-tick.major {
            border-left-width: 2px;
            border-color: rgba(255, 255, 255, 0.4);
        }

        .timeline-tick.minor {
            height: 50%;
            top: 50%;
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* Selection Area with Handles */
        .selection-area {
            position: absolute;
            top: 30px;
            bottom: 0;
            background: linear-gradient(90deg, 
                rgba(99, 102, 241, 0.2) 0%, 
                rgba(139, 92, 246, 0.15) 50%, 
                rgba(217, 70, 239, 0.2) 100%);
            border: 1px solid rgba(99, 102, 241, 0.6);
            border-top: none;
            border-bottom: none;
            display: none;
            z-index: 10;
            backdrop-filter: blur(5px);
        }

        .selection-area.active {
            display: block;
            animation: selectionGlow 1.5s ease-in-out infinite alternate;
        }

        @keyframes selectionGlow {
            0% { 
                box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.3);
            }
            100% { 
                box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.4);
            }
        }

        /* Resizable Handles */
        .selection-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 8px;
            background: linear-gradient(180deg, #6366f1, #8b5cf6);
            cursor: ew-resize;
            z-index: 15;
            transition: all 0.2s ease;
            border-radius: 0 3px 3px 0;
        }

        .selection-handle:hover {
            width: 12px;
            background: linear-gradient(180deg, #8b5cf6, #d946ef);
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
        }

        .selection-handle.start {
            left: -4px;
            border-radius: 3px 0 0 3px;
        }

        .selection-handle.end {
            right: -4px;
            border-radius: 0 3px 3px 0;
        }

        .selection-handle::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2px;
            height: 20px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 1px;
        }

        .selection-handle::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2px;
            height: 20px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 1px;
            margin-left: 2px;
        }

        /* Playback Indicator */
        .playback-indicator {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, #ef4444, #f59e0b);
            z-index: 20;
            display: none;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
        }

        .playback-indicator::before {
            content: '';
            position: absolute;
            top: -6px;
            left: -6px;
            width: 14px;
            height: 14px;
            background: #ef4444;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .playback-indicator.playing {
            display: block;
            animation: playbackPulse 1s ease-in-out infinite;
        }

        @keyframes playbackPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Timeline Labels */
        .timeline-labels {
            position: relative;
            height: 40px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .timeline-info {
            display: flex;
            gap: 2rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .timeline-info-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .timeline-info-label {
            font-size: 0.7rem;
            opacity: 0.7;
            margin-bottom: 2px;
        }

        .timeline-info-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Selection Time Display */
        .selection-time-display {
            position: absolute;
            top: -35px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            white-space: nowrap;
            z-index: 25;
            display: none;
            border: 1px solid rgba(99, 102, 241, 0.5);
        }

        .selection-area.active .selection-time-display {
            display: block;
        }

        /* Zoom Controls */
        .timeline-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .zoom-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--text-primary);
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.8rem;
        }

        .zoom-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(99, 102, 241, 0.4);
        }

        /* Modern Audio Controls */
        .audio-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
            margin: 3rem 0;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
        }

        .control-btn {
            position: relative;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--text-primary);
            padding: 1rem 1.8rem;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 0.7rem;
            font-weight: 500;
            font-size: 0.95rem;
            overflow: hidden;
        }

        .control-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.3);
        }

        .control-btn:hover::before {
            left: 0;
            opacity: 0.1;
        }

        .control-btn:active {
            transform: translateY(-1px);
        }

        .control-btn.primary {
            background: var(--primary-gradient);
            border-color: transparent;
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
        }

        .control-btn.primary::before {
            background: var(--accent-gradient);
            left: 0;
            opacity: 0;
        }

        .control-btn.primary:hover {
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
            transform: translateY(-5px);
        }

        .control-btn.primary:hover::before {
            opacity: 0.3;
        }

        .control-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .control-btn:disabled:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: none;
            box-shadow: none;
        }

        .control-btn i {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .control-btn:hover i {
            transform: scale(1.1);
        }

        /* Play button special styling */
        .control-btn#playBtn {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border-color: transparent;
        }

        .control-btn#playBtn:hover {
            box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
        }

        /* Pause button special styling */
        .control-btn#pauseBtn {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border-color: transparent;
        }

        .control-btn#pauseBtn:hover {
            box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
        }

        /* Stop button special styling */
        .control-btn#stopBtn {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            border-color: transparent;
        }

        .control-btn#stopBtn:hover {
            box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
        }

        /* Enhanced Selection Info */
        .selection-info {
            background: linear-gradient(145deg, 
                rgba(255, 255, 255, 0.05) 0%, 
                rgba(255, 255, 255, 0.02) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
            margin: 2rem 0;
            display: none;
            backdrop-filter: blur(20px);
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .selection-info::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-gradient);
            border-radius: 20px 20px 0 0;
        }

        .selection-info.show {
            display: block;
            animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .selection-info h5 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
        }

        .selection-info h5::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        .selection-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .selection-detail {
            text-align: center;
            padding: 1.2rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .selection-detail::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: -1;
        }

        .selection-detail:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
            border-color: rgba(99, 102, 241, 0.2);
        }

        .selection-detail:hover::before {
            left: 0;
            opacity: 0.05;
        }

        .detail-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .detail-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .detail-value#isRecommended {
            font-size: 1rem;
            font-weight: 600;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        /* Special styling for recommendation status */
        .detail-value#isRecommended.perfect {
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.2);
        }

        .detail-value#isRecommended.warning {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.2);
        }

        .detail-value#isRecommended.error {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.2);
        }

        /* Enhanced Loading Spinner */
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 3rem;
            background: var(--card-bg);
            border-radius: 20px;
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            margin: 2rem 0;
        }

        .loading-spinner.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(99, 102, 241, 0.1);
            border-left: 4px solid transparent;
            border-radius: 50%;
            margin: 0 auto 2rem;
            position: relative;
            animation: spin 1s linear infinite;
        }

        .spinner::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border: 4px solid transparent;
            border-left: 4px solid #8b5cf6;
            border-radius: 50%;
            animation: spin 1.5s linear infinite reverse;
        }

        .spinner::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 8px;
            right: 8px;
            bottom: 8px;
            border: 4px solid transparent;
            border-left: 4px solid #d946ef;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            color: var(--text-primary);
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .loading-subtext {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Progress bar for loading */
        .loading-progress {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            margin-top: 1rem;
            overflow: hidden;
        }

        .loading-progress-bar {
            height: 100%;
            background: var(--primary-gradient);
            border-radius: 2px;
            width: 0%;
            transition: width 0.3s ease;
            animation: progressShimmer 2s ease-in-out infinite;
        }

        @keyframes progressShimmer {
            0% { background-position: -200px 0; }
            100% { background-position: 200px 0; }
        }

        /* Export Section */
        .export-section {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            display: none;
        }

        .export-section.show {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        .export-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .export-subtitle {
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .download-btn {
            background: var(--accent-gradient);
            border: none;
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .ringtone-title {
                font-size: 2rem;
            }

            .ringtone-container {
                padding: 1rem;
            }

            .upload-section {
                padding: 2rem 1rem;
            }

            .audio-meta {
                flex-direction: column;
                gap: 1rem;
            }

            .audio-controls {
                flex-wrap: wrap;
                gap: 1rem;
                padding: 1.5rem;
            }

            .control-btn {
                flex: 1;
                min-width: 120px;
                padding: 0.8rem 1.2rem;
                font-size: 0.9rem;
            }

            .selection-details {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }

            .waveform-container {
                padding: 1rem;
                min-height: 320px;
            }

            .audio-timeline {
                height: 180px;
            }

            .waveform-title {
                font-size: 1rem;
            }

            .waveform-subtitle {
                font-size: 0.8rem;
            }

            .timeline-labels {
                flex-direction: column;
                height: auto;
                gap: 1rem;
                padding: 1rem;
            }

            .timeline-info {
                flex-wrap: wrap;
                gap: 1rem;
                justify-content: center;
            }

            .timeline-info-item {
                min-width: 80px;
            }

            .timeline-controls {
                justify-content: center;
            }

            .timeline-tick {
                font-size: 0.6rem;
            }

            .selection-handle {
                width: 12px;
            }

            .selection-handle:hover {
                width: 16px;
            }
        }

        @media (max-width: 480px) {
            .ringtone-title {
                font-size: 1.8rem;
            }

            .audio-controls {
                flex-direction: column;
            }

            .control-btn {
                width: 100%;
                justify-content: center;
            }

            .selection-details {
                grid-template-columns: 1fr;
            }

            .waveform-container {
                padding: 0.8rem;
                min-height: 280px;
            }

            .audio-timeline {
                height: 150px;
            }

            .audio-meta {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .timeline-info {
                grid-template-columns: 1fr 1fr;
                gap: 0.8rem;
            }

            .timeline-info-item {
                font-size: 0.8rem;
            }

            .selection-time-display {
                font-size: 0.6rem;
                padding: 2px 6px;
            }

            .timeline-ruler {
                height: 25px;
            }

            .timeline-tick {
                font-size: 0.55rem;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            .selection-area,
            .playback-indicator,
            .control-btn,
            .selection-detail,
            .selection-handle {
                animation: none !important;
                transition: none !important;
            }

            .control-btn:hover {
                transform: none;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .waveform-container,
            .audio-timeline {
                border: 2px solid var(--text-primary);
            }

            .control-btn {
                border: 2px solid var(--text-primary);
            }

            .selection-area {
                border: 3px solid var(--text-primary);
            }

            .selection-handle {
                border: 2px solid var(--text-primary);
            }

            .timeline-tick {
                border-color: var(--text-primary);
            }
        }

        /* GTranslate Widget Styling */
        .gtranslate_wrapper {
            position: relative;
        }

        /* Style the main GTranslate container */
        .gtranslate_wrapper .gt_selector {
            background: var(--card-bg) !important;
            backdrop-filter: blur(20px) !important;
            border: 1px solid var(--card-border) !important;
            border-radius: 8px !important;
            padding: 0.5rem 0.75rem !important;
            min-width: 120px !important;
            font-family: 'Inter', sans-serif !important;
            font-size: 0.9rem !important;
            color: var(--text-primary) !important;
            transition: all 0.3s ease !important;
            cursor: pointer !important;
        }

        .gtranslate_wrapper .gt_selector:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(99, 102, 241, 0.3) !important;
            transform: translateY(-1px) !important;
        }

        /* Style the dropdown arrow */
        .gtranslate_wrapper .gt_selector .gt_current_lang::after {
            content: '\f107' !important;
            font-family: 'bootstrap-icons' !important;
            margin-left: 0.5rem !important;
            color: var(--text-secondary) !important;
            transition: transform 0.3s ease !important;
        }

        .gtranslate_wrapper .gt_selector.gt_open .gt_current_lang::after {
            transform: rotate(180deg) !important;
        }

        /* Style the dropdown menu */
        .gtranslate_wrapper .gt_selector .gt_option {
            background: var(--card-bg) !important;
            backdrop-filter: blur(20px) !important;
            border: 1px solid var(--card-border) !important;
            border-radius: 8px !important;
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
            margin-top: 0.5rem !important;
            padding: 0 !important;
            overflow: hidden !important;
            z-index: 1050 !important;
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            right: 0 !important;
        }

        /* Style individual language options */
        .gtranslate_wrapper .gt_selector .gt_option a {
            display: flex !important;
            align-items: center !important;
            padding: 0.75rem 1rem !important;
            color: var(--text-primary) !important;
            text-decoration: none !important;
            font-size: 0.9rem !important;
            transition: all 0.3s ease !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .gt_white_content.notranslate {
               width: 100px !important;
                position: absolute !important;
                bottom: 0 !important;
                top: 100% !important;
                left: 0 !important;
                margin: 0 !important;
            }

        .gtranslate_wrapper .gt_selector .gt_option a:last-child {
            border-bottom: none !important;
        }

        .gtranslate_wrapper .gt_selector .gt_option a::before {
            content: '' !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: var(--primary-gradient) !important;
            opacity: 0 !important;
            transition: opacity 0.3s ease !important;
            z-index: -1 !important;
        }

        .gtranslate_wrapper .gt_selector .gt_option a:hover {
            color: var(--text-primary) !important;
            transform: translateX(5px) !important;
        }

        .gtranslate_wrapper .gt_selector .gt_option a:hover::before {
            opacity: 0.1 !important;
        }

        /* Style the flag icons */
        .gtranslate_wrapper img {
            width: 20px !important;
            height: 15px !important;
            margin-right: 0.5rem !important;
            border-radius: 3px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        }

        /* Current language styling */
        .gtranslate_wrapper .gt_current_lang {
            display: flex !important;
            align-items: center !important;
            font-weight: 500 !important;
            color: var(--text-primary) !important;
        }

        /* Mobile responsive */
        @media (max-width: 991px) {
            .gtranslate_wrapper {
                margin-top: 1rem !important;
                margin-bottom: 0.5rem !important;
            }
            
            .gtranslate_wrapper .gt_selector {
                width: 100% !important;
                justify-content: space-between !important;
            }
        }

        /* Alternative compact styling for smaller screens */
        @media (max-width: 576px) {
            .gtranslate_wrapper .gt_selector {
                min-width: 100px !important;
                padding: 0.4rem 0.6rem !important;
                font-size: 0.8rem !important;
            }
            
            .gtranslate_wrapper img {
                width: 16px !important;
                height: 12px !important;
                margin-right: 0.4rem !important;
            }
        }

        /* Hide default GTranslate branding if present */
        .gtranslate_wrapper .gt_bottom,
        .gtranslate_wrapper .powered_by {
            display: none !important;
        }

        /* Style for when the selector is focused */
        .gtranslate_wrapper .gt_selector:focus,
        .gtranslate_wrapper .gt_selector:focus-visible {
            outline: 2px solid rgba(99, 102, 241, 0.5) !important;
            outline-offset: 2px !important;
        }

        /* Animation for dropdown appearance */
        .gtranslate_wrapper .gt_selector .gt_option {
            opacity: 0 !important;
            transform: translateY(-10px) !important;
            transition: all 0.3s ease !important;
        }

        .gtranslate_wrapper .gt_selector.gt_open .gt_option {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        /* Language code styling - works with JavaScript */
        .gtranslate_wrapper .lang-code {
            font-family: 'Inter', sans-serif !important;
            font-weight: 500 !important;
            text-transform: uppercase !important;
            color: var(--text-primary) !important;
        }

        /* Mobile adjustments for language codes */
        @media (max-width: 576px) {
            .gtranslate_wrapper .lang-code {
                font-size: 0.8rem !important;
            }
        }
a.footer-btn.text-center{
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    background: var(--primary-gradient) !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: background 0.3s ease !important;
}

a.footer-btn.text-center:hover{
    background: var(--primary-gradient-hover) !important;
}

/* Contact Form */
form#contactForm{
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

label.contact-form.form-label{
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

/* Audio Title Section - Premium Feature */
.audio-title-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.audio-title-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.audio-title-section .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.audio-title-section .form-label i {
    color: #fbbf24;
}

.audio-title-section input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.audio-title-section input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.audio-title-section input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.audio-title-section .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.saved-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideInFromRight 0.5s ease-out;
    border: 1px solid rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(10px);
}

.view-library-link {
    margin-top: 0.5rem;
}

.view-library-link .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
}

.view-library-link .btn:hover {
    background-color: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    transform: translateY(-1px);
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Professional Generation Limits Panel */
.generation-limits-panel {
    margin: 2rem 0;
    perspective: 1000px;
}

.limits-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.limits-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.6) 0%, 
        rgba(139, 92, 246, 0.4) 25%, 
        rgba(217, 70, 239, 0.6) 50%,
        rgba(99, 102, 241, 0.4) 75%,
        rgba(139, 92, 246, 0.6) 100%);
    border-radius: 20px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
}

.limits-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.limits-card:hover::after {
    left: 100%;
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.8; 
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 1; 
        filter: hue-rotate(30deg);
    }
}

.limits-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.limits-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.limits-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.limits-icon {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.limits-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.limits-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usage-display {
    text-align: center;
}

.usage-numbers {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', monospace;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
}

.current-count {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.current-count.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-count.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.divider {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.limit-count {
    color: rgba(255, 255, 255, 0.8);
}

.usage-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 0.025em;
}

.progress-bar-container {
    width: 100%;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #10b981 0%, 
        #059669 50%, 
        #047857 100%);
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill.warning {
    background: linear-gradient(90deg, 
        #f59e0b 0%, 
        #d97706 50%, 
        #b45309 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, 
        #ef4444 0%, 
        #dc2626 50%, 
        #b91c1c 100%);
}

.progress-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 12px;
    background: inherit;
    border-radius: 20px;
    filter: blur(4px);
    opacity: 0.6;
    z-index: -1;
}

.upgrade-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upgrade-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.register-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.register-link:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: slideShimmer 0.6s ease-out;
}

.premium-link {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.premium-link:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
    color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.premium-link:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: slideShimmer 0.6s ease-out;
}

@keyframes slideShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Professional Generate Button */
.generate-btn-pro {
    width: 100%;
    height: 72px;
    border: none;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.generate-btn-pro:focus {
    outline: none;
}

.btn-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        #6366f1 0%, 
        #8b5cf6 25%, 
        #d946ef 50%, 
        #8b5cf6 75%, 
        #6366f1 100%);
    background-size: 300% 300%;
    border-radius: 20px;
    animation: gradientShift 4s ease-in-out infinite;
    transition: all 0.4s ease;
}

.generate-btn-pro:hover .btn-background {
    background-size: 400% 400%;
    animation-duration: 2s;
    filter: brightness(1.1) saturate(1.1);
}

.generate-btn-pro:active .btn-background {
    transform: scale(0.98);
}

.generate-btn-pro:disabled .btn-background {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    animation: none;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    padding: 0 2rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.generate-btn-pro:hover .btn-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.btn-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.generate-btn-pro:hover .btn-icon {
    animation: magicPulse 0.6s ease-in-out;
}

@keyframes magicPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.btn-text {
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.generate-btn-pro.loading .btn-text {
    opacity: 0;
    transform: translateY(-10px);
}

.btn-spinner-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
}

.generate-btn-pro.loading .btn-spinner-wrapper {
    opacity: 1;
}

.btn-spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 40px;
    height: 40px;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-right-color: rgba(255, 255, 255, 0.4);
    animation: spinClockwise 1.2s linear infinite;
}

.ring-2 {
    width: 32px;
    height: 32px;
    top: 4px;
    left: 4px;
    border-bottom-color: rgba(255, 255, 255, 0.6);
    border-left-color: rgba(255, 255, 255, 0.3);
    animation: spinCounterClockwise 1s linear infinite;
}

.ring-3 {
    width: 24px;
    height: 24px;
    top: 8px;
    left: 8px;
    border-top-color: rgba(255, 255, 255, 0.9);
    border-right-color: rgba(255, 255, 255, 0.2);
    animation: spinClockwise 0.8s linear infinite;
}

.spinner-core {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 16px;
    left: 16px;
    background: radial-gradient(circle, #ffffff, rgba(255, 255, 255, 0.5));
    border-radius: 50%;
    animation: corePulse 1s ease-in-out infinite;
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes corePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.btn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
}

.generate-btn-pro:hover .particle {
    animation: floatingParticles 2s infinite;
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.particle-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 1s;
}

.particle-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes floatingParticles {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .limits-card {
        padding: 1.5rem;
    }
    
    .usage-numbers {
        font-size: 2rem;
    }
    
    .generate-btn-pro {
        height: 64px;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .upgrade-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }
}