        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');
        :root {
            --neon-lime: #c6ff00;
            --neon-yellow: #fff200;
            --neon-orange: #ff9900;
            --neon-red: #ff005d;
            --neon-purple: #b100ff;
            --neon-violet: #7b2dff;
            --neon-green: #00ff95;
            --neon-sky: #00eaff;
            --di-orange: #f57f17;
            --di-blue: #00bcd4;
            --di-night: #ffffff;
            --di-twilight: #dddddd;
            --di-dark: #121212;
            --di-light: #2a2a2a;
            --di-bright: #000000;
            --cobalt-blue: #0047ab;
            --pure-pink: #ff69b4;
            --pure-cyan: #00ffff;
            --pure-purple: #800080;
            --pure-red: #ff0000;
            --spinner-size: 48px;
            --overlay-bg: rgba(0,0,0,0.45);
            --ad-height: 100px;
            --ad-bg: transparent;            
        }
        body.light-mode {
          --di-dark: #f5f7fb;
          --di-light: #ffffff;
          --di-night: #ffffff;
          --di-bright: #111111;
          --glass-border: rgba(0,0,0,0.08);
          --shadow: 0 10px 30px rgba(0,0,0,0.08);
          --overlay-bg: rgba(255,255,255,0.65);
        }
        body.light-mode {
          background: linear-gradient(135deg,
            #f8faff 0%,
            #eef2ff 30%,
            #fdfbff 60%,
            #ffffff 100%);
          color: #1a1a1a;
        }
        body.light-mode::after {
          background: #ffffff;
        }
        body.light-mode::before {
          background:
            radial-gradient(circle at 20% 80%, rgba(99,102,241,0.12) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(236,72,153,0.10) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(56,189,248,0.08) 0%, transparent 50%);
        }
        body.light-mode .sidebar {
          background: linear-gradient(
            90deg,
            #8f9fe6 0%,
            #b8c1e8 25%,
            #e1e5f2 65%,
            #ffffff 100%
          );
          border-right: 1px solid rgba(0,0,0,0.08);
          overflow: visible;
        }
        body.light-mode .main-content {
          color: #1a1a1a;
        }
        body.light-mode .glass-card,
        body.light-mode .error-container,
        body.light-mode .rate-limit-container {
          background: rgba(255,255,255,0.7);
          border: 1px solid rgba(0,0,0,0.08);
          color: #1a1a1a;
        }
        body.light-mode .response-container {
          background: linear-gradient(135deg, #ffffff 0%, #e8eaf0 50%, #d0d3dc 100%);
        }
        body.light-mode .prompt-container {
          background: linear-gradient(135deg, #ffffff 0%, #b8c1e8 50%, #99aaff 100%);
        }
        body.light-mode .overlay {
          background: linear-gradient(
            180deg,
            rgba(255,255,255,0.65),
            rgba(255,255,255,0.75)
          );
        }
        body.light-mode h1,
        body.light-mode h2,
        body.light-mode h3,
        body.light-mode .user-welcome {
          color: #111;
        }
        body.light-mode .hero-subtitle,
        body.light-mode footer,
        body.light-mode .info-text {
          color: rgba(0,0,0,0.65);
        }
        body.light-mode textarea {
          background: rgba(255,255,255,0.9);
          color: #111;
          border: 1px solid rgba(0,0,0,0.15);
        }
        body.light-mode textarea::placeholder {
          color: rgba(0,0,0,0.4);
        }
        body.light-mode button,
        body.light-mode input[type="submit"] {
          background: linear-gradient(
            180deg,
            rgba(255,255,255,0.95),
            rgba(245,247,255,0.9)
          );
          color: #111;
          text-shadow: none;
          box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        }
        body.light-mode .notification {
          box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        }
        body.light-mode .diamond {
          box-shadow: 0 8px 20px rgba(0,0,0,0.12);
          border: 1px solid rgba(0,0,0,0.08);
        }
        body.light-mode .diamond-content {
          color: #ffffff !important;
          text-shadow:
            0 1px 2px rgba(0,0,0,0.85),
            0 0 6px rgba(0,0,0,0.75);
        }
        body.light-mode .sidebar.history-mode .history-list {
          color: #111;
        }
        body.light-mode .sidebar.history-mode .history-list * {
          color: inherit;
        }
        body.light-mode .response-container,
        body.light-mode .prompt-container,
        body.light-mode .error-container,
        body.light-mode .rate-limit-container {
          color: #111;
        }
        body.light-mode .response-container h2,
        body.light-mode .prompt-container h2,
        body.light-mode .error-container h2,
        body.light-mode .rate-limit-container h2 {
          color: #111;
        }
        body.light-mode .response-container pre,
        body.light-mode .prompt-container pre,
        body.light-mode .error-container pre {
          color: #111;
          background: rgba(0,0,0,0.04);
        }
        body.light-mode .sidebar-toggle-btn:hover {
          background-color: #5a95f6;
          transform: scale(1.1);
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, 
                #0a0a0a 0%, 
                #1a1a2e 25%, 
                #16213e 50%, 
                #0f0f23 75%, 
                #000000 100%);
            background-attachment: fixed;
            background-attachment: scroll;
            overflow-x: hidden;
            position: relative;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        .fade-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeOut 0.5s ease-in-out 0.2s forwards;
        }
        .fade-overlay::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            border: 4px solid transparent;
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.2s linear infinite, fadeOutSpin 0.5s ease-in-out 0.2s forwards;
        }
        @keyframes fadeOut {
            0% {
                opacity: 1;
                clip-path: circle(150% at 50% 50%);
            }
            100% {
                opacity: 0;
                clip-path: circle(0% at 50% 50%);
                pointer-events: none;
            }
        }
        @keyframes fadeOutSpin {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0);
            }
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }
        @keyframes slideUp {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        body.low-power-mode::before {
            animation: none !important;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%) !important;
        }
        body.low-power-mode .diamond:hover {
            transform: rotate(45deg) scale(1.02);
            transition-duration: 0.15s;
        }
        .power-toggle-btn {
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px) saturate(160%);
            z-index: 9998;
            padding: 0;
            margin-left: 50px;
        }
        .power-toggle-btn:hover {
            background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
            transform: scale(1.1);
            border-color: rgba(255, 255, 255, 0.3);
        }
        .power-toggle-btn:active {
            transform: scale(1.05);
        }
        .power-toggle-btn::after {
            content: attr(title);
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .power-toggle-btn:hover::after {
            opacity: 1;
        }
        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #0a0a0a;
            z-index: -2;
            pointer-events: none;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
            animation: drift 20s ease-in-out infinite alternate;
            pointer-events: none;
            z-index: -1;
        }
        input[type="submit"],
        button[type="submit"] {
          appearance: none;
          border: 0;
          padding: 14px 22px;
          border-radius: 14px;
          background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
          color: #fff;
          font-weight: 300;
          font-size: 1.1rem;
          cursor: pointer;
          backdrop-filter: blur(6px) saturate(120%);
          box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
          transition: transform .22s ease, box-shadow .22s ease;
          position: relative;
          text-shadow:
            1px 1px 0 rgba(255, 255, 255, 0.85),
            0 0 8px rgba(0, 0, 0, 0.75);
        }
        input[type="submit"]:hover,
        button[type="submit"]:hover {
          transform: translateY(-4px);
          box-shadow: 0 16px 36px rgba(0,0,0,0.5);
        }
        @keyframes drift {
            0% { transform: rotate(0deg) scale(1); }
            100% { transform: rotate(180deg) scale(1.1); }
        }
        button[type="submit"] {
          position: relative;
          overflow: hidden;
        }
        button[type="submit"].loading {
          cursor: not-allowed;
        }
        .btn-text {
          display: inline-block;
          transition: opacity 0.3s ease;
        }
        button[type="submit"].loading .btn-text {
          opacity: 0;
        }
        button[type="submit"].loading {
            opacity: 1;
            visibility: visible;
        }
        .spinner-overlay {
          position: fixed;
          inset: 0;
          display: none;
          align-items: center;
          justify-content: center;
          z-index: 9999;
        }
        .spinner-overlay[aria-hidden="false"] {
          display: flex;
        }
        .spinner {
          width: var(--spinner-size);
          height: var(--spinner-size);
          border-radius: 50%;
          box-sizing: border-box;
          border: calc(var(--spinner-size) / 8) solid rgba(255,255,255,0.15);
          border-top-color: rgba(255,255,255,0.95);
          border-right-color: rgba(255,255,255,0.65);
          animation: spin 0.9s linear infinite;
          box-shadow: 0 0 calc(var(--spinner-size) / 12) rgba(255,255,255,0.08) inset;
        }
        @keyframes spin {
          to { transform: rotate(360deg); }
        }
        .container {
            display: grid;
            grid-template-columns: 300px 1fr;
            min-height: 100vh;
            max-width: 100%;
            overflow-x: hidden;
            z-index: 20;
            position: relative;
        }
        .btn-primary{
          appearance: none;
          border: 0;
          padding: 14px 22px;
          border-radius: 14px;
          background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
          color: #fff;
          font-weight: 300;
          font-size: 1.1rem;
          cursor: pointer;
          backdrop-filter: blur(6px) saturate(120%);
          box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
          transition: transform .22s ease, box-shadow .22s ease;
          position: relative;
          text-shadow:
            1px 1px 0 rgba(255, 255, 255, 0.85),
            0 0 8px rgba(0, 0, 0, 0.75);
        }
        .brand-mark{width:56px;height:56px;border-radius:12px;background:linear-gradient(135deg,#fff6d6 0%, #ffd88e 100%);display:grid;place-items:center;color:#1a1a1a;font-weight:700;font-family:'Playfair Display',serif}
        .overlay{
          position:fixed;inset:0;display:grid;place-items:center;padding:28px;z-index:60;
          background: linear-gradient(180deg, rgba(6,10,18,0.55), rgba(6,10,18,0.65));
          backdrop-filter: blur(6px) saturate(120%);
          opacity:0;pointer-events:none;transition:opacity .35s var(--ease);
        }
        .overlay.show{opacity:1;pointer-events:auto}
        .glass-card{
          width:min(760px, calc(100% - 56px));
          border-radius:var(--radius);
          padding:28px;
          position:relative;
          background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
          border: 1px solid var(--glass-border);
          box-shadow: var(--shadow);
          backdrop-filter: blur(20px) saturate(160%);
          overflow:hidden;
          transform: translateY(18px) scale(.995);
          transition: transform .42s var(--ease), opacity .32s var(--ease);
          color: #f5f8ff;
        }
        .overlay.show .glass-card{transform: translateY(0) scale(1)}
        .glass-card::before,
        .glass-card::after{
          content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
        }
        .glass-card::before{
          background: linear-gradient(120deg, var(--accentA), transparent 30%);
          mix-blend-mode: screen;opacity:.85;filter:blur(40px);transform:translate(-10%, -30%);
          width:600px;height:600px;left:-140px;top:-180px;
        }
        .glass-card::after{
          background: linear-gradient(220deg, var(--accentB), transparent 30%);
          mix-blend-mode: screen;opacity:.7;filter:blur(48px);transform:translate(10%, 40%);
          width:420px;height:420px;right:-90px;bottom:-140px;
        }
        .sidebar {
            width: 300px;
            padding: 2rem 1rem;
            background: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(10px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            transition: all 0.35s ease;
        }
        .main-content {
            width: 100%;
            max-width: 100%;
            padding: 0 30px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            transition: all 0.3s ease;
        }
        .sidebar-hidden .main-content {
            width: 100%
            padding-right: 10px;
            max-width: none;
        }
        .container.sidebar-hidden {
          grid-template-columns: 0 1fr;
        }
        .sidebar-toggle-btn {
          position: fixed;
          top: 12px;
          left: 12px;
          z-index: 5000;
          background: rgba(0,0,0,0.6);
          color: white;
          border: none;
          padding: 10px 12px;
          border-radius: 8px;
          font-size: 18px;
          cursor: pointer;
          transition: background 0.2s;
        }
        .sidebar-toggle-btn:hover {
          background: rgba(0,0,0,0.8);
        }
        .sidebar,
        .sidebar .diamond-grid {
            overflow: visible;
        }
        .sidebar.history-mode .diamond-grid {
          display: none;
        }
        .sidebar.history-mode .history-list {
          display: block;
          padding: 15px;
          color: white;
          overflow-y: auto;
        }
        .sidebar.hidden {
          transform: translateX(-260px);
          opacity: 0;
          pointer-events: none;
          transition: all 0.35s ease;
        }
        .newchat-btn {
          position: fixed;
          top: 20px;
          right: 20px;
          width: 36px;
          height: 36px;
          border-radius: 50%;
          background: linear-gradient(90deg, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan));
          color: white;
          border: none;
          cursor: pointer;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 22px;
          transition: all 0.2s ease-in-out;
          z-index: 9999;
        }
        .newchat-btn:hover {
          background-color: #5a95f6;
          transform: scale(1.1);
        }
        .diamond-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 15px;
            margin-top: 20px;
        }
        .diamond {
            aspect-ratio: 1/1;
            transform: rotate(45deg);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .diamond::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                          rgba(255, 255, 255, 0.1) 0%, 
                          rgba(255, 255, 255, 0) 50%,
                          rgba(0, 0, 0, 0.3) 100%);
        }
        .diamond:hover {
            transform: rotate(45deg) scale(1.05);
            box-shadow: 0 0 30px var(--di-blue);
            z-index: 10;
        }
        .diamond-content {
            transform: rotate(-45deg);
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 0.85rem;
            text-align: center;
            text-shadow: 0 0 5px black;
            padding: 15px;
            box-sizing: border-box;
            word-break: break-word;
            overflow: hidden;
            line-height: 1.3;
            pointer-events: auto;
        }
        .diamond:nth-child(14n+1), .diamond:nth-child(14n+14) {
            background: linear-gradient(135deg, var(--di-blue), var(--di-orange));
        }
        .diamond:nth-child(14n+2), .diamond:nth-child(14n+3) {
            background: linear-gradient(135deg, var(--cobalt-blue), var(--di-bright), var(--pure-cyan));
        }
        .diamond:nth-child(14n+4), .diamond:nth-child(14n+5) {
            background: linear-gradient(135deg, var(--di-night), var(--di-bright), var(--cobalt-blue));
        }
        .diamond:nth-child(14n+6), .diamond:nth-child(14n+7) {
            background: linear-gradient(135deg, var(--cobalt-blue), var(--di-light), var(--pure-pink));
        }
        .diamond:nth-child(14n+8), .diamond:nth-child(14n+9) {
            background: linear-gradient(135deg, var(--cobalt-blue), var(--pure-pink));
        }
        .diamond:nth-child(14n+10), .diamond:nth-child(14n+11) {
            background: linear-gradient(135deg, var(--pure-pink), var(--pure-cyan));
        }
        .diamond:nth-child(14n+12), .diamond:nth-child(14n+13) {
            background: linear-gradient(135deg, var(--pure-cyan), var(--di-bright), var(--di-blue));
        }
        header {
            text-align: center;
            padding: 30px 0;
            position: relative;
            margin-bottom: 40px;
        }
        header::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan), transparent);
            z-index: -1;
        }
        .hero-title {
            font-size: clamp(1rem, 2vw, 2rem);
            font-weight: 100;
            color: #ffffff;
            text-align: center;
            margin-bottom: 1rem;
            background: linear-gradient(90deg, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }
        .hero-subtitle {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            font-weight: 200;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
            margin-bottom: 4rem;
            letter-spacing: -0.01em;
            padding-right: 50px;
            padding-left: 50px;
        }
        footer {
          text-align: center;
          padding: 30px 0;
          margin-top: auto;
          margin-bottom: var(--ad-height);
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          color: rgba(255, 255, 255, 0.6);
          font-size: 0.8rem;
          width: 100%;
          position: relative;
          z-index: 200;
          background: inherit;
          box-sizing: border-box;
        }
        footer::after {
          content: '';
          position: absolute;
          bottom: calc(-1 * var(--ad-height));
          left: 0;
          right: 0;
          height: var(--ad-height);
          background: inherit;
          z-index: -1;
        }
        .sidebar-title {
            color: white;
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 2rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(90deg, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        @media (min-width: 1200px) {
          footer {
            padding-right: 30px;
          }
        }
        @media (max-width: 1024px) {
            .container {
                grid-template-columns: minmax(180px, 22%) 1fr;
            }
            .sidebar {
                width: 100%;
                padding: 1.5rem 0.75rem;
            }
            .main-content {
                padding: 0 1rem;
            }
            #adWrapper {
                padding: 0 1rem;
            }
            .diamond-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-gap: 4px;
            }
            .diamond {
                transform: rotate(45deg) scale(1.2);
                width: 70px;
                height: 70px;
            }
            .diamond:hover {
                transform: rotate(45deg) scale(1.35);
            }
            .diamond-content {
                font-size: 0.6rem;
                padding: 3px;
                line-height: 1.1;
            }
        }
        @media (max-width: 768px) {
            .container {
                grid-template-columns: minmax(150px, 32%) 1fr;
            }
            .sidebar {
                padding: 1rem 0.5rem;
                width: 100%;
            }
            .main-content {
                padding: 0 0.5rem;
                overflow: hidden;
            }
            #adWrapper {
                padding: 0 0.5rem;
                overflow: hidden;
            }
            .diamond-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-gap: 4px;
            }
            .diamond {
                transform: rotate(45deg) scale(1.3);
                transform-origin: center;
                margin: 0 auto;
                width: 60px;
                height: 60px;
            }
            .diamond-content {
                font-size: 0.6rem;
                padding: 5px;
                line-height: 1.1;
            }
            .diamond:hover {
                transform: rotate(45deg) scale(1.55);
            }
            .response-container, .error-container, .rate-limit-container, .prompt-container {
                padding: 0.8rem;
                margin: 0;
            }
            .sidebar-title {
                font-size: 1.3rem;
                margin-bottom: 1rem;
            }
            form {
                max-width: 100%;
                overflow: hidden;
            }
            textarea {
                min-height: 80px;
                font-size: 14px;
            }
        }
        @media (max-width: 480px) {
            .spinner { 
                width: calc(var(--spinner-size) * 0.85); 
                height: calc(var(--spinner-size) * 0.85); 
            }
            .container {
                grid-template-columns: minmax(100px, 22%) 1fr;
            }
            .sidebar {
                padding: 0.5rem 0.25rem;
                width: 100%;
            }
            .main-content {
                padding: 0 0.25rem;
            }
            #adWrapper {
                padding: 0 0.25rem;
            }
            .diamond-grid {
                grid-template-columns: 1fr;
                grid-gap: 4px;
            }
            .diamond {
                transform: rotate(45deg) scale(1.1);
                width: 50px;
                height: 50px;
            }
            .diamond-content {
                font-size: 0.6rem;
                padding: 4px;
            }
            .diamond:hover {
                transform: rotate(45deg) scale(1.1);
            }
            .sidebar-title {
                font-size: 1.2rem;
                transform: scale(0.7);
            }
            header {
                padding: 20px 0;
                margin-bottom: 20px;
            }
            .hero-subtitle {
                margin-bottom: 2rem;
            }
        }
        #sign-in-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 2rem 0;
        }
        #sign-in {
            width: 100%;
        }
        .user-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 2rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            backdrop-filter: blur(5px);
        }
        .user-welcome {
            color: white;
            font-size: 1.1rem;
            padding-left: 24px;
        }
        .sign-out-btn {
            background: linear-gradient(135deg, var(--pure-red), var(--di-orange));
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .sign-out-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        form {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }
        textarea {
            width: 100%;
            max-width: 100%;
            min-height: 120px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: white;
            font-family: 'Inter', sans-serif;
            font-size: 17px;
            padding: 12px;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
            resize: vertical;
            box-sizing: border-box;
        }
        textarea:focus {
            outline: none;
            border-color: var(--di-blue);
            box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
        }
        ::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        .form-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }
        .return-toggle {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            margin-left: 50px;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 20px;
            margin-right: 8px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.2);
            transition: .4s;
            border-radius: 34px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: var(--di-blue);
        }
        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }
        .rate-limit-container {
            text-align: center;
            margin: 2rem 0;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .rate-limit-diamond {
            width: 100px;
            height: 100px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, var(--pure-red), var(--cobalt-blue));
        }
        .rate-limit-container h2 {
            color: white;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        .rate-limit-container p {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }
        .response-container, .error-container, .prompt-container {
            width: 100%;
            max-width: 100%;
            padding: 0.8rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-sizing: border-box;
            position: relative;
            overflow: hidden;
        }
        .response-container h2, .error-container, .prompt-container h2 {
            color: white;
            font-weight: 500;
        }
        .response-container pre, .error-container, .prompt-container pre {
            color: rgba(255, 255, 255, 0.9);
            white-space: pre-wrap;
            word-wrap: break-word;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.7rem;
            padding-bottom: 4rem;
            border-radius: 8px;
            overflow-x: auto;
            max-width: 100%;
            box-sizing: border-box;
        }
        .copy-btn,
        .copy-btnR {
            position: absolute;
            top: 12px;
            width: 34px;
            height: 34px;
            font-size: 14px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
            z-index: 10;
        }
        .copy-btn {
            left: 12px;
        }
        .copy-btnR {
            right: 12px;
        }
        body.light-mode .copy-btn:hover,
        body.light-mode .copy-btnR:hover {
          background: #a980b9;
          transform: scale(1.5);
        }
        .loading {
          color: #fff;
        }
        .tinySpinner {
          width: 4px;
          height: 4px;
          border: 2px solid #ddd;
          border-top-color: #555;
          border-radius: 50%;
          position: fixed;
          bottom: 34px;
          right: 34px;
          animation: tinySpin 0.75s linear infinite;
        }
        @keyframes tinySpin {
          to { transform: rotate(360deg); }
        }
        body.light-mode .loading {
          color: #000;
        }
        .copy-btn, .copy-btnR:active {
            transform: translateY(0);
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        }
        .copy-btn.copied, .copy-btnR.copied {
            background: #2ecc71;
        }
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #2ecc71;
            color: white;
            padding: 15px 25px;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            transform: translateY(-100px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        .model-selector {
            position: relative;
            width: 100%;
        }
        .selector-button {
            width: 100%;
            padding: 16px 20px;
            background: linear-gradient(135deg, var(--cobalt-blue), var(--di-bright), var(--pure-cyan));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }
        .selector-button:hover {
            background: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
        }
        .selector-button:active {
            transform: translateY(0);
        }
        .selector-arrow {
            transition: transform 0.3s ease;
            font-size: 14px;
        }
        .dropdown-list {
            margin-bottom: 4px;
            position: absolute;
            top: auto;
            bottom: 100%
            left: 0;
            width: 100%;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            margin-top: 8px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 10;
        }
        .dropdown-list.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .dropdown-item {
            padding: 16px 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            font-size: 16px;
        }
        .dropdown-item:last-child {
            border-bottom: none;
        }
        .dropdown-item:hover {
            background: #f8faff;
            padding-left: 24px;
        }
        .dropdown-item.selected {
            background: #eef2ff;
            color: #4f46e5;
            font-weight: 500;
        }
        .dropdown-item.selected::before {
            content: "✓";
            margin-right: 10px;
            font-weight: bold;
        }
        .info-text {
            margin-top: 20px;
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
  #adWrapper {
            width: 100%;
            max-width: 100%;
            padding: 100px 30px 0;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            transition: all 0.3s ease;
  }
  #adWrapper > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .sidebar-hidden #adWrapper {
      width: 100%
      padding-right: 10px;
      max-width: none;
  }
  .ad {
    width: 400px;
    height: 100%;
    pointer-events: auto;
    flex-shrink: 0;
    margin-right: 20px;
  }
  .ad a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .ad a:hover,
  .ad a:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
  }
  .ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
  }
  .ad a:focus {
    outline: none;
  }
  .role {
    font-size: 10px;
    color: gray;
  }
  .user {
    margin-left: auto;
    text-align: right;
  }
  .system {
    margin-right: auto;
  }
