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

      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
        background: #0a0a0a;
        color: #e0e0e0;
        min-height: 100vh;
        padding: 0;
        margin: 0;
      }

      .navbar {
        position: sticky;
        top: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid #1a1a1a;
        padding: 16px 0;
        z-index: 100;
        margin-bottom: 40px;
      }

      .navbar-content {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .navbar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
      }

      .navbar-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 22px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: -0.5px;
      }

      .navbar-logo-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
      }

      .navbar-user {
        display: flex;
        align-items: center;
        gap: 16px;
      }

      .navbar-user-email {
        color: #bbb;
        font-size: 14px;
        font-weight: 500;
      }

      .navbar-menu {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      #navbarAuth {
        display: none;
      }

      #navbarAuth[style*="flex"] {
        display: flex !important;
      }

      .navbar-btn {
        padding: 8px 16px;
        background: transparent;
        color: #bbb;
        border: 1px solid #2a2a2a;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
      }

      .navbar-btn:hover {
        background: #1a1a1a;
        border-color: #3a3a3a;
        color: #ffffff;
      }

      .navbar-btn.primary {
        background: #10b981;
        border-color: #10b981;
        color: #ffffff;
      }

      .navbar-btn.primary:hover {
        background: #34d399;
        border-color: #34d399;
      }

      /* CSS Variables for consistent theming */
      :root {
        --primary: #10b981;
        --primary-dark: #059669;
        --primary-light: #34d399;
        --primary-glow: rgba(16, 185, 129, 0.2);
        --surface: #141414;
        --surface-light: #1a1a1a;
        --surface-lighter: #222222;
        --border: #2a2a2a;
        --border-light: #333333;
        --text: #e0e0e0;
        --text-muted: #888888;
        --text-dim: #666666;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
      }

      .container {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        padding: 0 24px 60px;
      }

      .page-header {
        margin-bottom: 48px;
      }

      h1 {
        color: #ffffff;
        margin-bottom: 8px;
        font-size: 36px;
        font-weight: 700;
        letter-spacing: -0.8px;
        line-height: 1.1;
      }

      .subtitle {
        color: #999;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
      }

      /* Tool Card Wrapper */
      .tool-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 32px;
        margin-bottom: 24px;
      }

      .tool-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
      }

      .tool-card-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-dark) 100%
        );
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
      }

      .tool-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        margin: 0;
      }

      .tool-card-subtitle {
        font-size: 13px;
        color: var(--text-muted);
        margin-top: 2px;
      }

      .form-group {
        margin-bottom: 0;
      }

      label {
        display: block;
        margin-bottom: 12px;
        color: var(--text);
        font-weight: 500;
        font-size: 14px;
      }

      textarea {
        width: 100%;
        min-height: 180px;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-size: 15px;
        font-family: inherit;
        background: var(--surface-light);
        color: var(--text);
        resize: vertical;
        transition: all 0.2s;
        line-height: 1.7;
      }

      textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--surface-lighter);
        box-shadow: 0 0 0 3px var(--primary-glow);
      }

      textarea::placeholder {
        color: #555;
      }

      /* Estimate Info Bar */
      .estimate-bar {
        display: none;
        margin-top: 20px;
        background: var(--surface-light);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
      }

      .estimate-bar.active {
        display: block !important;
      }

      .estimate-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
      }

      .estimate-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px 12px;
        gap: 6px;
        border-right: 1px solid var(--border);
        text-align: center;
      }

      .estimate-item:last-child {
        border-right: none;
      }

      .estimate-label {
        display: block;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
      }

      .estimate-value {
        display: block;
        color: var(--text);
        font-weight: 700;
        font-size: 20px;
        font-variant-numeric: tabular-nums;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
      }

      .estimate-value.highlight {
        color: var(--primary);
      }

      .estimate-footer {
        padding: 12px 16px;
        background: var(--surface);
        border-top: 1px solid var(--border);
      }

      .estimate-tip {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        color: var(--text-muted);
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .estimate-tip span:first-child {
        flex-shrink: 0;
      }

      .cache-info {
        display: none;
        margin-bottom: 8px;
        padding: 10px 12px;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: var(--radius-sm);
        font-size: 13px;
        color: var(--primary-light);
      }

      .cache-info.active {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .cache-info span:first-child {
        flex-shrink: 0;
      }

      .action-section {
        margin-top: 0;
      }

      .generate-btn {
        width: 100%;
        padding: 18px 28px;
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-dark) 100%
        );
        color: #ffffff;
        border: none;
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px var(--primary-glow);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
      }

      .generate-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
      }

      .generate-btn:active:not(:disabled) {
        transform: translateY(0);
      }

      .generate-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }

      .progress-container {
        margin-top: 24px;
        display: none;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 28px;
      }

      .progress-container.active {
        display: block;
        animation: slideDown 0.3s ease;
      }

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

      .progress-step {
        margin-bottom: 20px;
      }

      .progress-step:last-child {
        margin-bottom: 0;
      }

      .progress-label {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        color: var(--text);
        font-weight: 500;
        font-size: 13px;
      }

      .progress-bar {
        width: 100%;
        height: 6px;
        background: var(--surface-light);
        border-radius: 3px;
        overflow: hidden;
      }

      .progress-fill {
        height: 100%;
        background: linear-gradient(
          90deg,
          var(--primary) 0%,
          var(--primary-light) 100%
        );
        border-radius: 3px;
        transition: width 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 500;
        font-size: 11px;
      }

      .status {
        margin-top: 24px;
        padding: 16px 20px;
        border-radius: var(--radius-md);
        font-weight: 500;
        font-size: 14px;
        display: none;
        animation: slideDown 0.3s ease;
        background: var(--surface);
        border: 1px solid var(--border);
      }

      .status.active {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .status.success {
        background: linear-gradient(
          135deg,
          rgba(16, 185, 129, 0.1) 0%,
          rgba(5, 150, 105, 0.05) 100%
        );
        color: var(--primary-light);
        border-color: rgba(16, 185, 129, 0.3);
      }

      .status.error {
        background: linear-gradient(
          135deg,
          rgba(239, 68, 68, 0.1) 0%,
          rgba(220, 38, 38, 0.05) 100%
        );
        color: #fca5a5;
        border-color: rgba(239, 68, 68, 0.3);
      }

      .download-btn {
        display: none;
        text-decoration: none;
      }

      .download-btn.active {
        display: inline-flex;
      }

      .download-btn button {
        display: inline-flex;
        align-items: center;
        padding: 12px 20px;
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .download-btn button:hover {
        background: var(--surface-light);
        border-color: var(--primary);
        color: var(--primary-light);
      }

      .video-container {
        margin-top: 24px;
        display: none;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        animation: slideDown 0.4s ease;
      }

      .video-container.active {
        display: block;
      }

      .video-container video {
        width: 100%;
        height: auto;
        display: block;
        background: #000;
      }

      .video-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
      }

      .video-title {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
      }

      .video-title-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-dark) 100%
        );
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
      }

      .video-label {
        margin-bottom: 16px;
        color: #e0e0e0;
        font-weight: 500;
        font-size: 14px;
      }

      .loading {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #ffffff;
        animation: spin 0.8s linear infinite;
        margin-right: 8px;
        vertical-align: middle;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* Voice Selection - Clean Redesign */
      .voice-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-height: 220px;
        overflow-y: auto;
        padding: 4px;
      }

      @media (min-width: 768px) {
        .voice-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }

      .voice-grid.expanded {
        max-height: 400px;
      }

      .voice-grid::-webkit-scrollbar {
        width: 6px;
      }

      .voice-grid::-webkit-scrollbar-track {
        background: transparent;
      }

      .voice-grid::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
      }

      .voice-loading {
        text-align: center;
        padding: 32px;
        color: var(--text-muted);
        font-size: 14px;
        grid-column: 1 / -1;
      }

      .voice-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        background: var(--surface-light);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: all 0.15s ease;
        position: relative;
      }

      .voice-item:hover {
        border-color: var(--border-light);
        background: var(--surface-lighter);
      }

      .voice-item.selected {
        border-color: var(--primary);
        background: rgba(16, 185, 129, 0.08);
      }

      .voice-item-radio {
        width: 18px;
        height: 18px;
        border: 2px solid var(--border-light);
        border-radius: 50%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
        margin-top: 2px;
      }

      .voice-item.selected .voice-item-radio {
        border-color: var(--primary);
        background: var(--primary);
      }

      .voice-item.selected .voice-item-radio::after {
        content: "";
        width: 6px;
        height: 6px;
        background: white;
        border-radius: 50%;
      }

      .voice-item-header {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
      }

      .voice-item-info {
        flex: 1;
        min-width: 0;
      }

      .voice-item-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        margin-bottom: 4px;
        line-height: 1.3;
      }

      .voice-item.selected .voice-item-name {
        color: var(--primary-light);
      }

      .voice-item-description {
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.4;
        margin-top: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .voice-item-preview {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        flex-shrink: 0;
        margin-left: auto;
      }

      .voice-item-preview:hover {
        background: var(--primary);
        border-color: var(--primary);
      }

      .voice-item-preview svg {
        width: 12px;
        height: 12px;
        color: var(--text-muted);
      }

      .voice-item-preview:hover svg {
        color: white;
      }

      .voice-item-preview.playing {
        background: var(--primary);
        border-color: var(--primary);
      }

      .voice-item-preview.playing svg {
        color: white;
      }

      .voice-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 16px;
        margin-top: 12px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        font-size: 13px;
        cursor: pointer;
        transition: all 0.15s ease;
        width: 100%;
      }

      .voice-toggle:hover {
        border-color: var(--primary);
        color: var(--primary);
      }

      .voice-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s ease;
      }

      .voice-toggle.expanded svg {
        transform: rotate(180deg);
      }

      /* Legacy support - hide old elements */
      .voice-container,
      .voice-card,
      .voice-preview,
      .voice-name,
      .voice-description {
        display: none !important;
      }

      .voice-preview-legacy {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 0;
        flex-shrink: 0;
        position: relative;
        width: 100%;
      }

      .voice-preview-label {
        font-size: 9px;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        opacity: 0.7;
        transition: opacity 0.2s ease, color 0.2s ease;
        white-space: nowrap;
        position: relative;
        text-align: center;
      }

      .voice-card:hover .voice-preview-label {
        opacity: 1;
        color: #888;
      }

      .play-btn:hover ~ .voice-preview-label {
        opacity: 0.3;
      }

      .play-btn[title] {
        position: relative;
      }

      .play-btn[title]:hover::before {
        content: attr(title);
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.95);
        color: #fff;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 11px;
        white-space: nowrap;
        pointer-events: none;
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
        font-weight: 500;
        letter-spacing: 0.3px;
        opacity: 0;
        animation: tooltipFadeIn 0.2s ease-out forwards;
      }

      @keyframes tooltipFadeIn {
        to {
          opacity: 1;
        }
      }

      .play-btn[title]:hover::after {
        content: "";
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid rgba(0, 0, 0, 0.95);
        pointer-events: none;
        z-index: 1000;
        opacity: 0;
        animation: tooltipFadeIn 0.2s ease-out forwards;
      }

      .play-btn {
        background: linear-gradient(
          135deg,
          rgba(26, 26, 26, 0.9) 0%,
          rgba(20, 20, 20, 0.95) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: #bbb;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
      }

      .play-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.1) 0%,
          transparent 100%
        );
        opacity: 0;
        transition: opacity 0.25s ease;
      }

      .play-btn:hover::before {
        opacity: 1;
      }

      .play-btn svg {
        width: 18px;
        height: 18px;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
      }

      .play-btn:hover {
        background: linear-gradient(
          135deg,
          rgba(40, 40, 40, 0.95) 0%,
          rgba(32, 32, 32, 0.98) 100%
        );
        border-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }

      .play-btn.playing {
        background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
        border-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
        animation: pulse 2s ease-in-out infinite;
      }

      @keyframes pulse {
        0%,
        100% {
          box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
        }
        50% {
          box-shadow: 0 4px 20px rgba(16, 185, 129, 0.7);
        }
      }

      .play-btn.playing:hover {
        background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
        border-color: #34d399;
      }

      .play-btn.playing svg {
        margin-left: 0;
      }

      .audio-player {
        display: none;
      }

      .voice-show-more {
        margin-top: 12px;
        text-align: center;
      }

      .show-more-btn {
        background: linear-gradient(
          135deg,
          rgba(26, 26, 26, 0.6) 0%,
          rgba(20, 20, 20, 0.8) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #aaa;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }

      .show-more-btn:hover {
        border-color: rgba(16, 185, 129, 0.5);
        color: #34d399;
        background: linear-gradient(
          135deg,
          rgba(26, 35, 50, 0.4) 0%,
          rgba(20, 25, 32, 0.6) 100%
        );
        transform: translateY(-1px);
        box-shadow: 0 4px 12px var(--primary-glow);
      }

      .voice-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
      }

      .voice-count {
        color: #999;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.3px;
      }

      .history-section {
        margin-top: 0;
        display: none;
        animation: fadeIn 0.3s ease;
      }

      .history-section.active {
        display: block;
      }

      .history-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 32px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
      }

      .history-title {
        color: #ffffff;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.6px;
      }

      .history-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
      }

      .history-item {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 24px;
        cursor: default;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
      }

      .history-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(
          90deg,
          transparent,
          var(--primary),
          transparent
        );
        opacity: 0;
        transition: opacity 0.25s ease;
      }

      .history-item:hover {
        border-color: var(--border-light);
        background: var(--surface-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      }

      .history-item:hover::before {
        opacity: 1;
      }

      .history-item-text {
        color: var(--text);
        font-size: 15px;
        margin-bottom: 16px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .history-item-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
      }

      .history-item-actions {
        display: flex;
        gap: 10px;
        margin-top: 0;
      }

      .history-action-btn {
        flex: 1;
        padding: 10px 18px;
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: -0.1px;
      }

      .history-action-btn:hover {
        background: var(--surface-light);
        border-color: var(--border-light);
        color: var(--text);
        transform: translateY(-1px);
      }

      .history-action-btn:first-child:hover {
        border-color: var(--primary);
        color: var(--primary);
      }

      /* History Tabs */
      .history-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0;
      }

      .history-tab {
        padding: 12px 24px;
        background: transparent;
        color: var(--text-muted);
        border: none;
        border-bottom: 2px solid transparent;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: -1px;
      }

      .history-tab:hover {
        color: var(--text);
      }

      .history-tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
      }

      .history-tab-content {
        display: none;
      }

      .history-tab-content.active {
        display: block;
      }

      /* Payments Section */
      .payments-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        gap: 16px;
      }

      .payments-description {
        color: var(--text-muted);
        font-size: 14px;
      }

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

      .payment-item {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 16px;
        align-items: center;
        transition: all 0.2s ease;
      }

      .payment-item:hover {
        border-color: var(--border-light);
        background: var(--surface-light);
      }

      .payment-item-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .payment-item-package {
        color: var(--text);
        font-size: 15px;
        font-weight: 600;
      }

      .payment-item-date {
        color: var(--text-muted);
        font-size: 13px;
      }

      .payment-item-amount {
        color: var(--text);
        font-size: 16px;
        font-weight: 600;
        text-align: right;
      }

      .payment-item-credits {
        color: var(--primary);
        font-size: 13px;
        text-align: right;
      }

      .payment-item-status {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
      }

      .payment-status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .payment-status-badge.completed {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
      }

      .payment-status-badge.pending {
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
      }

      .payment-status-badge.processing {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
      }

      .payment-status-badge.failed {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
      }

      .payment-refresh-btn {
        padding: 6px 12px;
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .payment-refresh-btn:hover {
        background: var(--surface-light);
        border-color: var(--primary);
        color: var(--primary);
      }

      .payment-refresh-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .payment-item-ids {
        color: var(--text-muted);
        font-size: 11px;
        font-family: monospace;
      }

      /* Expanded Payment Item */
      .payment-item-expanded {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        transition: all 0.2s ease;
      }

      .payment-item-expanded:hover {
        border-color: var(--border-light);
        background: var(--surface-light);
      }

      .payment-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .payment-item-amounts {
        display: flex;
        gap: 16px;
        align-items: baseline;
      }

      .payment-item-amount {
        color: var(--text);
        font-size: 20px;
        font-weight: 700;
      }

      .payment-item-credits {
        color: var(--primary);
        font-size: 14px;
        font-weight: 600;
      }

      .payment-item-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
      }

      .payment-detail-row {
        display: flex;
        gap: 12px;
        align-items: flex-start;
      }

      .payment-detail-label {
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 500;
        min-width: 90px;
        flex-shrink: 0;
      }

      .payment-detail-value {
        color: var(--text);
        font-size: 12px;
        word-break: break-all;
      }

      .payment-id-full {
        font-family: monospace;
        font-size: 11px;
        color: var(--text-muted);
        background: rgba(0, 0, 0, 0.3);
        padding: 2px 6px;
        border-radius: 4px;
      }

      .payment-refresh-btn-full {
        padding: 10px 16px;
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        align-self: flex-start;
      }

      .payment-refresh-btn-full:hover {
        background: var(--primary);
        color: #000;
      }

      .payment-refresh-btn-full:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .main-content {
        display: block;
      }

      .main-content.hidden {
        display: none;
      }

      .main-content.visible {
        display: block;
      }

      /* Payment Verification Overlay */
      .payment-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease;
      }

      .payment-overlay-content {
        text-align: center;
        padding: 48px;
        max-width: 400px;
      }

      .payment-spinner {
        width: 64px;
        height: 64px;
        border: 4px solid #1a1a1a;
        border-top-color: #10b981;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 24px;
      }

      .payment-overlay-title {
        font-size: 24px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 12px;
      }

      .payment-overlay-message {
        font-size: 16px;
        color: #888;
        line-height: 1.6;
      }

      .payment-overlay-steps {
        margin-top: 32px;
        text-align: left;
      }

      .payment-step {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        color: #666;
        font-size: 14px;
        border-bottom: 1px solid #1a1a1a;
      }

      .payment-step:last-child {
        border-bottom: none;
      }

      .payment-step.active {
        color: #fff;
      }

      .payment-step.completed {
        color: #10b981;
      }

      .payment-step-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
      }

      .payment-step.active .payment-step-icon {
        background: #10b981;
        animation: pulse 1.5s ease infinite;
      }

      .payment-step.completed .payment-step-icon {
        background: #10b981;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.5;
        }
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      /* Toast Notification Styles */
      .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
      }

      .toast {
        background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
        border: 1px solid #2a2a2a;
        border-radius: 16px;
        padding: 20px 24px;
        min-width: 320px;
        max-width: 420px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
          0 0 0 1px rgba(255, 255, 255, 0.05);
        pointer-events: auto;
        animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: flex-start;
        gap: 16px;
      }

      .toast.success {
        border-color: #10b981;
        background: linear-gradient(135deg, #0f2922 0%, #0a1a16 100%);
      }

      .toast.error {
        border-color: #ef4444;
        background: linear-gradient(135deg, #2a1515 0%, #1a0f0f 100%);
      }

      .toast-icon {
        font-size: 28px;
        flex-shrink: 0;
      }

      .toast-content {
        flex: 1;
      }

      .toast-title {
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 4px;
      }

      .toast-message {
        font-size: 14px;
        color: #888;
        line-height: 1.5;
      }

      .toast-close {
        background: none;
        border: none;
        color: #666;
        cursor: pointer;
        padding: 4px;
        font-size: 18px;
        line-height: 1;
        transition: color 0.2s;
      }

      .toast-close:hover {
        color: #fff;
      }

      .toast.hiding {
        animation: toastSlideOut 0.3s ease-in forwards;
      }

      @keyframes toastSlideIn {
        from {
          opacity: 0;
          transform: translateX(100px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes toastSlideOut {
        from {
          opacity: 1;
          transform: translateX(0);
        }
        to {
          opacity: 0;
          transform: translateX(100px);
        }
      }

      /* Top-up Modal Styles */
      .topup-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      .topup-modal.active {
        display: flex;
      }

      .topup-modal-content {
        background: linear-gradient(135deg, #141414 0%, #0f0f0f 100%);
        border: 1px solid #1a1a1a;
        border-radius: 20px;
        padding: 40px;
        max-width: 560px;
        width: 100%;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
          0 0 0 1px rgba(255, 255, 255, 0.05);
        animation: modalSlideIn 0.3s ease-out;
      }

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

      .topup-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
      }

      .topup-modal-title {
        font-size: 28px;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.8px;
        background: linear-gradient(135deg, #ffffff, #e0e0e0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .topup-modal-close {
        background: transparent;
        border: none;
        color: #999;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
      }

      .topup-modal-close:hover {
        background: #1a1a1a;
        color: #ffffff;
      }

      .topup-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
        position: relative;
      }

      .topup-option {
        background: linear-gradient(135deg, #1a1a1a 0%, #181818 100%);
        border: 1.5px solid #252525;
        border-radius: 16px;
        padding: 24px 28px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        min-width: 0;
        width: 100%;
        isolation: isolate;
      }

      .topup-option::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #10b981, #34d399);
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .topup-option::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          circle at center,
          var(--primary-glow) 0%,
          transparent 70%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-radius: var(--radius-lg);
      }

      .topup-option:hover {
        border-color: var(--primary);
        background: linear-gradient(
          135deg,
          var(--surface-lighter) 0%,
          var(--surface-light) 100%
        );
        transform: translateX(4px);
        box-shadow: 0 4px 12px var(--primary-glow),
          0 0 0 1px rgba(16, 185, 129, 0.1);
        z-index: 1;
      }

      .topup-option:hover::before {
        opacity: 1;
      }

      .topup-option:hover::after {
        opacity: 0.5;
      }

      .topup-option.selected {
        border-color: var(--primary);
        background: linear-gradient(
          135deg,
          rgba(16, 185, 129, 0.15) 0%,
          rgba(16, 185, 129, 0.05) 100%
        );
        box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2),
          0 4px 12px var(--primary-glow);
        transform: translateX(2px);
        z-index: 2;
      }

      .topup-option.selected::before {
        opacity: 1;
      }

      .topup-option.selected::after {
        opacity: 0.6;
      }

      .topup-option-content {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-width: 0;
        overflow: visible;
      }

      .topup-option-ms {
        font-size: 28px;
        font-weight: 800;
        background: linear-gradient(135deg, #10b981, #34d399);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.1;
        letter-spacing: -0.5px;
        white-space: nowrap;
        display: inline-block;
        word-break: keep-all;
        overflow: visible;
        flex-shrink: 0;
      }

      .topup-option-amount {
        font-size: 24px;
        font-weight: 700;
        color: #e0e0e0;
        text-align: right;
        line-height: 1.2;
      }

      .topup-option-time {
        font-size: 13px;
        color: #888;
        font-weight: 500;
        text-align: right;
        line-height: 1.3;
      }

      .topup-option.selected .topup-option-time {
        color: #aaa;
      }

      .topup-option-check {
        position: relative;
        width: 24px;
        height: 24px;
        border: 2px solid #10b981;
        border-radius: 6px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        flex-shrink: 0;
      }

      .topup-option.selected .topup-option-check {
        opacity: 1;
        background: #10b981;
      }

      .topup-option-check::after {
        content: "✓";
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s ease;
      }

      .topup-option.selected .topup-option-check::after {
        opacity: 1;
        transform: scale(1);
      }

      .topup-submit-btn {
        width: 100%;
        padding: 16px 24px;
        background: linear-gradient(135deg, #10b981, #34d399);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 8px;
        box-shadow: 0 4px 16px var(--primary-glow);
        letter-spacing: 0.3px;
        position: relative;
        overflow: hidden;
      }

      .topup-submit-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: left 0.5s ease;
      }

      .topup-submit-btn:hover:not(:disabled) {
        background: linear-gradient(
          135deg,
          var(--primary-light),
          var(--primary)
        );
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
      }

      .topup-submit-btn:hover:not(:disabled)::before {
        left: 100%;
      }

      .topup-submit-btn:active:not(:disabled) {
        transform: translateY(0);
      }

      .topup-submit-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #2a2a2a;
        box-shadow: none;
      }

      .topup-current-balance {
        text-align: center;
        padding: 20px 24px;
        background: linear-gradient(
          135deg,
          rgba(16, 185, 129, 0.08) 0%,
          rgba(16, 185, 129, 0.03) 100%
        );
        border: 1px solid rgba(16, 185, 129, 0.15);
        border-radius: var(--radius-md);
        margin-bottom: 32px;
        backdrop-filter: blur(10px);
      }

      .topup-current-balance-label {
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
      }

      .topup-current-balance-value {
        font-size: 24px;
        font-weight: 700;
        background: linear-gradient(
          135deg,
          var(--primary),
          var(--primary-light)
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
      }

      /* Landing Page Styles */
      .landing-section {
        display: block;
      }

      .landing-section.hidden {
        display: none;
      }

      /* Hero Section */
      .hero-section {
        padding: 100px 24px 120px;
        background: radial-gradient(
            ellipse 80% 50% at 50% -20%,
            var(--primary-glow),
            transparent
          ),
          linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
        position: relative;
        overflow: hidden;
      }

      .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.5;
      }

      .hero-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
      }

      .hero-badge {
        display: inline-block;
        padding: 8px 16px;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.3);
        border-radius: 50px;
        color: var(--primary);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 24px;
        text-transform: uppercase;
      }

      .hero-title {
        font-size: 64px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 24px;
        letter-spacing: -2px;
        line-height: 1.1;
      }

      .hero-title .highlight {
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-light) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .hero-subtitle {
        font-size: 20px;
        color: var(--text-muted);
        line-height: 1.7;
        margin-bottom: 32px;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
      }

      /* Teleprompter Background */
      .teleprompter-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 0;
      }

      .teleprompter-words {
        position: absolute;
        font-size: 18px;
        font-weight: 600;
        color: rgba(16, 185, 129, 0.08);
        letter-spacing: 0.5px;
        white-space: nowrap;
      }

      .teleprompter-word {
        opacity: 0;
        display: inline-block;
        margin-right: 8px;
        animation: wordAppear 0.4s ease forwards;
      }

      .teleprompter-word.fade-out {
        animation: wordFade 0.3s ease forwards;
      }

      /* Multiple teleprompter lines at different positions */
      .teleprompter-line {
        position: absolute;
        white-space: nowrap;
        font-size: 16px;
        font-weight: 600;
        color: rgba(16, 185, 129, 0.25);
        letter-spacing: 0.3px;
      }

      .teleprompter-line:nth-child(1) {
        top: 8%;
        left: 5%;
      }
      .teleprompter-line:nth-child(2) {
        top: 15%;
        right: 8%;
      }
      .teleprompter-line:nth-child(3) {
        top: 75%;
        left: 3%;
      }
      .teleprompter-line:nth-child(4) {
        top: 82%;
        right: 5%;
      }
      .teleprompter-line:nth-child(5) {
        top: 45%;
        left: 2%;
        font-size: 14px;
      }
      .teleprompter-line:nth-child(6) {
        top: 50%;
        right: 3%;
        font-size: 14px;
      }

      @keyframes wordAppear {
        to {
          opacity: 1;
        }
      }

      @keyframes wordFade {
        to {
          opacity: 0;
        }
      }

      .hero-cta {
        display: flex;
        gap: 16px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
      }

      .cta-button {
        padding: 16px 32px;
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-dark) 100%
        );
        color: #ffffff;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: 0.3px;
        box-shadow: 0 4px 20px var(--primary-glow);
      }

      .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
        background: linear-gradient(
          135deg,
          var(--primary-light) 0%,
          var(--primary) 100%
        );
      }

      .cta-link {
        padding: 16px 32px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.2s ease;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: transparent;
      }

      .cta-link:hover {
        color: var(--text);
        border-color: var(--primary);
        background: rgba(16, 185, 129, 0.1);
      }

      /* Features Section */
      .features-section {
        padding: 100px 24px;
        background: #0a0a0a;
        border-top: 1px solid var(--border);
      }

      .section-title {
        font-size: 40px;
        font-weight: 700;
        color: #ffffff;
        text-align: center;
        margin-bottom: 16px;
        letter-spacing: -1px;
      }

      .section-subtitle {
        font-size: 18px;
        color: var(--text-dim);
        text-align: center;
        margin-bottom: 64px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1000px;
        margin: 0 auto;
      }

      .feature-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 36px 28px;
        transition: all 0.3s ease;
        text-align: center;
      }

      .feature-card:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
      }

      .feature-icon {
        width: 56px;
        height: 56px;
        background: linear-gradient(
          135deg,
          rgba(16, 185, 129, 0.15) 0%,
          rgba(5, 150, 105, 0.15) 100%
        );
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin: 0 auto 20px;
      }

      .feature-title {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 12px;
      }

      .feature-description {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
      }

      /* Example Section */
      .example-section {
        padding: 100px 24px;
        background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
        border-top: 1px solid var(--border);
      }

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

      .example-badge {
        display: inline-block;
        padding: 6px 14px;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.3);
        border-radius: 50px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 20px;
        text-transform: uppercase;
      }

      .example-title {
        font-size: 36px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
      }

      .example-description {
        font-size: 17px;
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 40px;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
      }

      .tweet-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
      }

      .tweet-container {
        width: 550px;
        min-height: 650px;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      }

      .tweet-container iframe {
        width: 550px !important;
        min-height: 650px !important;
        border: none !important;
        display: block !important;
      }

      /* CTA Section */
      .cta-section {
        padding: 100px 24px;
        background: radial-gradient(
            ellipse 80% 50% at 50% 100%,
            var(--primary-glow),
            transparent
          ),
          #0a0a0a;
        border-top: 1px solid var(--border);
        text-align: center;
      }

      .cta-title {
        font-size: 40px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 16px;
        letter-spacing: -1px;
      }

      .cta-subtitle {
        font-size: 18px;
        color: var(--text-dim);
        text-align: center;
        margin-bottom: 40px;
      }

      .cta-button-large {
        display: inline-block;
        padding: 18px 40px;
        background: linear-gradient(
          135deg,
          var(--primary) 0%,
          var(--primary-dark) 100%
        );
        color: #ffffff;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        box-shadow: 0 4px 16px var(--primary-glow);
      }

      .cta-button-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
        background: linear-gradient(
          135deg,
          var(--primary-light) 0%,
          var(--primary) 100%
        );
      }

      /* Tablet styles */
      @media (max-width: 1024px) {
        .navbar-content {
          padding: 0 16px;
        }

        .features-grid {
          grid-template-columns: repeat(3, 1fr);
          gap: 20px;
        }

        .history-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      /* Mobile styles */
      @media (max-width: 768px) {
        /* Navbar */
        .navbar {
          padding: 10px 0 !important;
          margin-bottom: 0 !important;
        }

        .navbar-content {
          padding: 0 12px !important;
          flex-direction: column !important;
          gap: 10px !important;
        }

        .navbar-brand {
          width: 100% !important;
          justify-content: center !important;
        }

        .navbar-user {
          width: 100% !important;
          flex-direction: column !important;
          gap: 10px !important;
          align-items: center !important;
        }

        .navbar-user > div:first-child {
          display: flex !important;
          flex-direction: column !important;
          align-items: center !important;
          width: 100% !important;
          gap: 6px !important;
        }

        .navbar-user-email {
          font-size: 12px !important;
          max-width: 200px !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
          white-space: nowrap !important;
        }

        .navbar-wallet {
          font-size: 11px !important;
        }

        .navbar-menu {
          width: 100% !important;
          display: grid !important;
          grid-template-columns: repeat(4, 1fr) !important;
          gap: 6px !important;
        }

        .navbar-btn {
          padding: 8px 6px !important;
          font-size: 11px !important;
          text-align: center !important;
          min-width: 0 !important;
        }

        .navbar-not-logged-in {
          width: 100% !important;
          justify-content: center !important;
        }

        /* Ensure navbarAuth respects inline display:none on mobile - must come after .navbar-menu rule */
        #navbarAuth[style*="display: none"],
        #navbarAuth[style*="display:none"],
        #navbarAuth.navbar-menu[style*="display: none"],
        #navbarAuth.navbar-menu[style*="display:none"] {
          display: none !important;
        }

        /* Container */
        .container {
          padding: 0 16px 24px;
          max-width: 100%;
          overflow-x: hidden;
        }

        /* Tool Cards */
        .tool-card {
          padding: 20px 16px;
          border-radius: 12px;
          max-width: 100%;
          overflow-x: hidden;
        }

        .tool-card-header {
          margin-bottom: 16px;
        }

        .tool-card-icon {
          width: 36px;
          height: 36px;
          font-size: 16px;
        }

        .tool-card-title {
          font-size: 15px;
        }

        .tool-card-subtitle {
          font-size: 12px;
        }

        textarea {
          min-height: 150px;
          padding: 16px;
          font-size: 14px;
        }

        .estimate-bar {
          margin-top: 16px;
          border-radius: 10px;
        }

        .estimate-row {
          grid-template-columns: repeat(3, 1fr) !important;
          gap: 0;
        }

        .estimate-item {
          padding: 12px 4px;
          gap: 4px;
          min-width: 0;
          overflow: hidden;
        }

        .estimate-value {
          font-size: 14px;
          line-height: 1.2;
          word-break: break-word;
          overflow-wrap: break-word;
          max-width: 100%;
          text-align: center;
        }

        .estimate-label {
          font-size: 9px;
          letter-spacing: 0.3px;
          text-align: center;
          word-break: break-word;
        }

        .estimate-footer {
          padding: 10px 12px;
        }

        .estimate-tip {
          font-size: 11px;
          gap: 6px;
        }

        .estimate-tip span:last-child {
          flex: 1;
          min-width: 0;
        }

        .cache-info {
          font-size: 11px;
          padding: 8px 10px;
          gap: 6px;
        }

        .cache-info span:last-child {
          flex: 1;
          min-width: 0;
        }

        .generate-btn {
          padding: 16px 24px;
          font-size: 14px;
        }

        .video-header {
          padding: 16px 20px;
          flex-direction: column;
          gap: 12px;
          align-items: flex-start;
        }

        /* Hero Section */
        .hero-section {
          padding: 40px 16px 60px;
        }

        .hero-badge {
          font-size: 11px;
          padding: 6px 12px;
        }

        .hero-title {
          font-size: 32px;
          letter-spacing: -1px;
        }

        .hero-subtitle {
          font-size: 15px;
          margin-bottom: 24px;
        }

        .hero-cta {
          flex-direction: column;
          gap: 12px;
        }

        .cta-button,
        .cta-link {
          width: 100%;
          text-align: center;
          padding: 14px 24px;
        }

        /* Teleprompter */
        .teleprompter-line {
          font-size: 12px;
        }

        .teleprompter-line:nth-child(5),
        .teleprompter-line:nth-child(6) {
          display: none;
        }

        /* Features */
        .features-section {
          padding: 48px 16px;
        }

        .section-title {
          font-size: 26px;
        }

        .section-subtitle {
          font-size: 14px;
          margin-bottom: 32px;
        }

        .features-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }

        .feature-card {
          padding: 20px 16px;
        }

        .feature-icon {
          width: 48px;
          height: 48px;
          font-size: 24px;
          margin-bottom: 16px;
        }

        .feature-title {
          font-size: 16px;
        }

        .feature-description {
          font-size: 13px;
        }

        /* Example Section */
        .example-section {
          padding: 48px 16px;
        }

        .example-title {
          font-size: 26px;
        }

        .example-description {
          font-size: 14px;
        }

        .tweet-wrapper {
          padding: 0;
        }

        .tweet-container {
          width: 100%;
          max-width: 100%;
          min-height: 500px;
        }

        .tweet-container iframe {
          width: 100% !important;
          max-width: 100% !important;
          min-height: 500px !important;
        }

        /* CTA Section */
        .cta-section {
          padding: 48px 16px;
        }

        .cta-title {
          font-size: 26px;
        }

        .cta-subtitle {
          font-size: 14px;
        }

        .cta-button-large {
          width: 100%;
          padding: 16px 24px;
          font-size: 14px;
        }

        /* Form */
        .form-group {
          margin-bottom: 24px;
        }

        label {
          font-size: 11px;
        }

        textarea {
          min-height: 100px;
          font-size: 14px;
          padding: 14px;
        }

        /* Voice Grid */
        .voice-grid {
          grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
          gap: 8px;
          max-height: 200px;
        }

        .voice-grid.expanded {
          max-height: 350px;
        }

        .voice-item {
          padding: 8px 10px;
          gap: 8px;
        }

        .voice-item-name {
          font-size: 12px;
        }

        .voice-item-radio {
          width: 16px;
          height: 16px;
        }

        .voice-item-preview {
          width: 26px;
          height: 26px;
        }

        .play-btn {
          width: 36px;
          height: 36px;
        }

        .play-btn svg {
          width: 16px;
          height: 16px;
        }

        /* Progress */
        .progress-container {
          padding: 20px;
          border-radius: 12px;
        }

        .progress-label {
          font-size: 12px;
        }

        /* Status */
        .status {
          padding: 14px 16px;
          font-size: 13px;
        }

        /* Video Container */
        .video-container {
          border-radius: 12px;
        }

        /* Download Button */
        .download-btn button {
          padding: 14px 20px;
          font-size: 14px;
        }

        /* Generate Button */
        .generate-btn {
          padding: 16px 24px;
          font-size: 14px;
        }

        /* History */
        .history-header {
          flex-direction: column;
          align-items: flex-start;
          gap: 16px;
          margin-bottom: 24px;
          padding-bottom: 16px;
        }

        .history-title {
          font-size: 24px;
        }

        .history-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }

        .history-item {
          padding: 16px;
        }

        .history-item-text {
          font-size: 14px;
        }

        .history-item-meta {
          font-size: 12px;
          flex-wrap: wrap;
          gap: 8px;
        }

        .history-action-btn {
          padding: 8px 12px;
          font-size: 12px;
        }

        /* History Tabs Mobile */
        .history-tabs {
          gap: 4px;
        }

        .history-tab {
          padding: 10px 16px;
          font-size: 13px;
        }

        /* Payments Mobile */
        .payments-header {
          flex-direction: column;
          align-items: stretch;
        }

        .payment-item {
          grid-template-columns: 1fr;
          gap: 12px;
        }

        .payment-item-amount,
        .payment-item-credits {
          text-align: left;
        }

        .payment-item-status {
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
        }

        /* Expanded Payment Item Mobile */
        .payment-item-expanded {
          padding: 16px;
          gap: 12px;
        }

        .payment-item-header {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
        }

        .payment-item-amounts {
          flex-direction: column;
          gap: 4px;
        }

        .payment-item-amount {
          font-size: 18px;
        }

        .payment-detail-row {
          flex-direction: column;
          gap: 4px;
        }

        .payment-detail-label {
          min-width: auto;
        }

        .payment-refresh-btn-full {
          width: 100%;
          text-align: center;
        }

        /* Top-up Modal */
        .topup-modal {
          padding: 16px;
        }

        .topup-modal-content {
          padding: 24px 20px;
          border-radius: 16px;
        }

        .topup-modal-title {
          font-size: 22px;
        }

        .topup-option {
          padding: 16px;
          gap: 12px;
        }

        .topup-option-ms {
          font-size: 20px;
        }

        .topup-option-amount {
          font-size: 18px;
        }

        .topup-option-time {
          font-size: 11px;
        }

        .topup-submit-btn {
          padding: 14px 20px;
          font-size: 14px;
        }

        .topup-current-balance {
          padding: 16px;
        }

        .topup-current-balance-value {
          font-size: 20px;
        }

        /* Estimate */
        .estimate-inline {
          padding: 12px 14px !important;
        }

        .estimate-inline > div:first-child {
          flex-direction: column;
          gap: 8px !important;
        }
      }

      /* Small mobile styles */
      @media (max-width: 480px) {
        .navbar-menu {
          grid-template-columns: repeat(2, 1fr);
        }

        .navbar-user-email {
          max-width: 160px;
          font-size: 11px;
        }

        .hero-title {
          font-size: 26px;
        }

        .hero-subtitle {
          font-size: 13px;
        }

        .hero-badge {
          font-size: 10px;
          padding: 5px 10px;
        }

        .features-grid {
          gap: 12px;
        }

        .feature-card {
          padding: 16px;
        }

        .section-title {
          font-size: 22px;
        }

        .example-title {
          font-size: 22px;
        }

        .cta-title {
          font-size: 22px;
        }

        .navbar-btn {
          padding: 6px 8px;
          font-size: 10px;
        }

        .voice-card {
          min-width: 110px;
          max-width: 130px;
          padding: 10px 8px;
        }

        .voice-name {
          font-size: 12px;
        }

        .voice-description {
          font-size: 9px;
        }

        .play-btn {
          width: 32px;
          height: 32px;
        }

        .topup-option-content {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
        }

        .topup-option-ms {
          font-size: 18px;
        }

        .topup-modal-content {
          padding: 20px 16px;
        }

        .topup-modal-title {
          font-size: 20px;
        }

        .generate-btn {
          padding: 14px 20px;
          font-size: 13px;
        }

        .container {
          padding: 0 12px 20px;
        }
      }

      /* Landscape mobile */
      @media (max-width: 768px) and (orientation: landscape) {
        .hero-section {
          padding: 30px 16px 40px;
        }

        .hero-title {
          font-size: 28px;
        }

        .features-section,
        .example-section,
        .cta-section {
          padding: 40px 16px;
        }
      }

      /* Touch device optimizations */
      @media (hover: none) and (pointer: coarse) {
        .voice-card:hover {
          transform: none;
          box-shadow: none;
        }

        .voice-card.selected {
          transform: none;
        }

        .feature-card:hover {
          transform: none;
          box-shadow: none;
        }

        .history-item:hover {
          transform: none;
          box-shadow: none;
        }

        .cta-button:hover,
        .cta-link:hover,
        .cta-button-large:hover {
          transform: none;
        }
      }

      /* Footer Styles */
      .site-footer {
        margin-top: 80px;
        padding: 40px 24px;
        background: #0a0a0a;
        border-top: 1px solid #1a1a1a;
      }

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

      .footer-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-bottom: 16px;
        flex-wrap: wrap;
      }

      .footer-separator {
        color: #444;
        font-size: 14px;
      }

      .footer-text {
        color: #999;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 0;
      }

      .footer-link {
        color: #10b981;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s ease;
      }

      .footer-link:hover {
        color: #34d399;
        text-decoration: underline;
      }

      .footer-contact {
        color: #e0e0e0;
        font-weight: 500;
      }

      @media (max-width: 768px) {
        .site-footer {
          margin-top: 60px;
          padding: 32px 16px;
        }

        .footer-links {
          gap: 12px;
          font-size: 12px;
        }

        .footer-separator {
          font-size: 12px;
        }

        .footer-text {
          font-size: 12px;
        }

        .footer-link {
          font-size: 12px;
        }
      }
    </style>
