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

    :root {
      --bg: #0f172a;
      --bg-secondary: #1e293b;
      --card: rgba(255, 255, 255, 0.06);
      --border: rgba(255, 255, 255, 0.08);
      --text: #ffffff;
      --muted: #94a3b8;
      --primary: #3b82f6;
      --secondary: #8b5cf6;
    }

    body.light-theme {
      --bg: #f8fafc;
      --bg-secondary: #e2e8f0;
      --card: rgba(255, 255, 255, 0.9);
      --border: rgba(0, 0, 0, 0.08);
      --text: #0f172a;
      --muted: #64748b;
    }

    body {
      font-family: 'Inter', sans-serif;
      min-height: 100vh;
      background:
        linear-gradient(135deg,
          var(--bg),
          var(--bg-secondary));
      color: var(--text);
      transition: .3s;
      overflow-x: hidden;
    }

    .project-back-button {
      position: fixed;
      left: 20px;
      top: 20px;
      z-index: 1000;
      padding: 10px 18px;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 600;
      backdrop-filter: blur(12px);
      background: rgba(59, 130, 246, .12);
      border: 1px solid rgba(59, 130, 246, .3);
      color: #60a5fa;
      transition: .3s;
    }

    .project-back-button:hover {
      transform: translateY(-2px);
    }

    header {
      padding: 30px 20px;
      text-align: center;
      position: relative;
    }

    .header-actions {
      position: absolute;
      right: 20px;
      top: 20px;
      display: flex;
      gap: 10px;
    }

    .header-btn {
      border: none;
      cursor: pointer;
      padding: 10px 14px;
      border-radius: 12px;
      color: white;
      background: rgba(255,255,255,.08);
      backdrop-filter: blur(12px);
      transition: .3s;
    }

    .header-btn:hover {
      transform: translateY(-2px);
    }

    h1 {
      font-family: 'Merriweather', serif;
      font-size: 2.5rem;
      margin-bottom: 8px;
    }

    .subtitle {
      color: var(--muted);
      letter-spacing: 2px;
      text-transform: uppercase;
      font-size: .8rem;
    }

    .hero {
      text-align: center;
      margin-top: 20px;
    }

    .hero h2 {
      font-size: 1.8rem;
      font-weight: 700;
    }

    .hero p {
      color: var(--muted);
      margin-top: 10px;
    }

    main {
      width: 100%;
      max-width: 900px;
      margin: auto;
      padding: 40px 20px;
    }

    .search-section {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      margin-bottom: 30px;
    }

    #keyword {
      flex: 1;
      min-width: 250px;
      padding: 14px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--card);
      backdrop-filter: blur(12px);
      color: var(--text);
      outline: none;
    }

    .action-btn {
      border: none;
      cursor: pointer;
      padding: 14px 22px;
      border-radius: 14px;
      font-weight: 600;
      transition: .3s;
    }

    #generate {
      background: linear-gradient(135deg,
          #3b82f6,
          #8b5cf6);
      color: white;
    }

    #history-btn {
      background: rgba(255,255,255,.08);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .action-btn:hover {
      transform: translateY(-2px);
    }

    .stats {
      text-align: center;
      margin-bottom: 30px;
      color: var(--muted);
    }

    .content-grid {
      display: grid;
      gap: 20px;
    }

    .card {
      background: var(--card);
      backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 28px;
      box-shadow: 0 10px 30px rgba(0,0,0,.15);
      transition: .3s;
    }

    .card:hover {
      transform: translateY(-4px);
    }

    .card-type {
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: .75rem;
      color: var(--muted);
      margin-bottom: 15px;
    }

    #quote {
      font-family: 'Merriweather', serif;
      font-style: italic;
      line-height: 1.8;
      min-height: 60px;
      font-size: 1.1rem;
    }

    #joke {
      line-height: 1.8;
      min-height: 60px;
      font-size: 1rem;
    }

    .card-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
    }

    .small-btn {
      border: none;
      cursor: pointer;
      padding: 10px 14px;
      border-radius: 10px;
      background: rgba(255,255,255,.08);
      color: var(--text);
      font-size: .85rem;
    }

    #history-panel {
      position: fixed;
      top: 0;
      right: -420px;
      width: 400px;
      max-width: 95%;
      height: 100%;
      background: #111827;
      transition: .35s ease;
      z-index: 2000;
      overflow-y: auto;
      padding: 24px;
      box-shadow: -10px 0 40px rgba(0,0,0,.4);
    }

    #history-panel.active {
      right: 0;
    }

    .history-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
    }

    .history-item {
      background: #1f2937;
      padding: 15px;
      border-radius: 14px;
      margin-bottom: 15px;
    }

    .history-item small {
      color: #94a3b8;
    }

    .history-item p {
      margin-top: 10px;
      font-size: .9rem;
    }

    #loading {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 3000;
    }

    #loading.hidden {
      display: none;
    }

    .loader {
      width: 55px;
      height: 55px;
      border: 4px solid rgba(255,255,255,.15);
      border-top: 4px solid white;
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }

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

    .fade-in {
      animation: fadeIn .5s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    @media(max-width:768px) {
      .content-grid { gap: 10px; }
      h1 {
        font-size: 2rem;
      }

      .hero h2 {
        font-size: 1.4rem;
      }

      .header-actions {
        position: static;
        justify-content: center;
        margin-top: 15px;
      }
    }

 .footer {
    margin-top: 60px;
    padding: 25px 20px;
    text-align: center;
    background: var(--card);
    border-top: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--muted);
    font-size: 0.9rem;
}