:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0; /* Changed from 15px 0 to 0 to accommodate banner */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* App Download Banner */
.app-download-banner {
    background: rgba(37, 99, 235, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 0;
    animation: fadeIn 0.5s ease;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.banner-text i {
    color: #3DDC84;
    font-size: 16px;
}

.download-app-btn {
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .banner-text span {
        font-size: 11px;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.logo-tagline {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* AI Chat Bubble */
.ai-chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.ai-chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

.ai-chat-bubble::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.ai-chat-bubble .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Page Content */
.page-content {
    margin-top: 115px;
    min-height: calc(100vh - 115px);
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* AI Poet / Shayari Generator Styles */
.result-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    /* Ensure capture works well */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.card-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card-svg-bg svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poet-content-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10% 8%; /* Reduced padding to fill more space */
    box-sizing: border-box;
}

#shayari-container {
    width: 100%;
    max-height: 85%; /* Increased height to use more of the frame */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#shayari-text {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    white-space: pre-wrap;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.shayari-big {
    font-size: 38px; /* Much larger for the big frame */
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
    width: 100%;
    font-family: 'Playfair Display', serif;
}

.shayari-small {
    font-size: 26px; /* Larger for readability on full image */
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
}

.signature-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.signature-line {
    height: 1px;
    width: 20px;
    background: white;
    opacity: 0.4;
}

#poet-signature {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
}

.emotion-slider-container {
    background: var(--glass);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

#emotion-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

#emotion-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

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

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

.poet-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.poet-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.poet-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: var(--transition);
}

.poet-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.poet-action-btn.active-voice {
    background: var(--danger);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.poet-action-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .poet-controls {
        grid-template-columns: 1fr;
    }
    .shayari-big {
        font-size: 28px;
    }
    .shayari-small {
        font-size: 18px;
    }
}

/* Mobile UI Enhancements (retain desktop as-is) */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 32px; }
    .tools-grid { grid-template-columns: 1fr; gap: 16px; }
    .tool-card { padding: 24px 18px; }
    .page-content { margin-top: 100px; min-height: calc(100vh - 100px); }
    .search-bar { margin: 12px 0 0; max-width: 100%; }
    .poet-action-buttons { gap: 8px; }
    .poet-action-btn { min-width: 110px; padding: 10px; font-size: 12px; }
    .result-card { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
    .poet-content-area { padding: 12% 6%; }
    .shayari-big { font-size: 24px; line-height: 1.25; }
    .shayari-small { font-size: 16px; line-height: 1.35; }
    .emotion-slider-container { padding: 16px; }
    .input-wrapper { padding: 6px; }
    .input-wrapper input { font-size: 14px; padding: 8px 12px; }
    .send-btn { width: 40px; height: 40px; }
    .chat-messages { padding: 14px; gap: 10px; }
    .message { font-size: 13px; }
    .nav-menu { gap: 12px; }
    .logo-icon { width: 36px; height: 36px; font-size: 18px; }
    .logo-main { font-size: 20px; }
    .banner-text { font-size: 12px; }
}
/* Home Page */
.hero-section {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-text {
    color: var(--gray-light);
    font-size: 16px;
}

.tools-grid-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 18px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.08);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 25px;
}

.tool-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.tool-card p {
    color: var(--gray-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.tool-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-xl);
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient);
    opacity: 0.1;
    z-index: -1;
}

.cta-title { font-size: 36px; margin-bottom: 20px; color: white; }
.cta-text { color: var(--gray-light); max-width: 600px; margin: 0 auto 40px; font-size: 18px; }

/* Tools Page */
.tools-page { padding: 60px 0; }
.category-filter { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.category-btn { padding: 12px 25px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 30px; color: var(--gray-light); cursor: pointer; transition: var(--transition); font-weight: 600; }
.category-btn:hover, .category-btn.active { background: var(--gradient); color: white; border-color: transparent; }

/* Tool Detail Page */
.tool-detail-page { padding: 60px 0; display: none; }
.tool-detail-page.active { display: block; }
.tool-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.back-btn { background: rgba(255, 255, 255, 0.1); border: none; width: 45px; height: 45px; border-radius: 12px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.back-btn:hover { background: rgba(255, 255, 255, 0.2); }
.tool-detail-title { font-size: 32px; color: white; }
.tool-detail-content { background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-xl); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; min-height: 600px; }
.tool-detail-sidebar { padding: 30px; background: rgba(0, 0, 0, 0.3); border-right: 1px solid rgba(255, 255, 255, 0.1); }
.language-selector { margin-bottom: 30px; }
.language-selector h4 { color: white; margin-bottom: 15px; font-size: 18px; }
.language-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.language-option { padding: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; text-align: center; cursor: pointer; transition: var(--transition); }
.language-option:hover { background: rgba(255, 255, 255, 0.1); }
.language-option.active { background: var(--gradient); border-color: transparent; color: white; }
.tool-detail-main { padding: 40px; }
.input-section { margin-bottom: 30px; }
.input-label { display: block; margin-bottom: 15px; color: white; font-weight: 600; font-size: 18px; }
.textarea-input { width: 100%; min-height: 200px; padding: 20px; background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); color: white; font-family: 'Inter', sans-serif; font-size: 16px; resize: vertical; transition: var(--transition); }
.textarea-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.generate-section { display: flex; gap: 15px; align-items: center; }
.generate-btn { flex: 1; padding: 18px; background: var(--gradient); border: none; border-radius: var(--radius); color: white; font-size: 18px; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 12px; }
.generate-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Loading State */
.loading { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.loading-spinner { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--gray-light); font-weight: 500; }

/* Results Section */
.results-section { display: none; margin-top: 40px; animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-title { font-size: 24px; color: white; }
.results-actions { display: flex; gap: 10px; }
.results-content { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 30px; position: relative; }
.result-text { color: white; font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
/* Bio Preview */
.preview-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 180px;
    color: white;
    white-space: pre-wrap;
}

/* Tutorial & About Section Styles */
.tutorial-grid {
    animation: fadeIn 0.8s ease;
}

.tutorial-card {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-lg);
}

.feedback-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn i {
    font-size: 14px;
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.feedback-btn.active.like-btn {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

.feedback-btn.active.unlike-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.about-content {
    animation: fadeIn 1s ease;
}

@media (max-width: 768px) {
    .feedback-section {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

.chat-container {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.ai-bubble {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-bubble {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.chat-loading {
    padding: 10px 20px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-light);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 20px;
    color: white;
    outline: none;
    font-size: 15px;
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

/* Chip Buttons */
.chip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 10px; color: white; font-weight: 600; }
.form-input { width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); color: white; font-family: 'Inter', sans-serif; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Chat Modal */
#chatModal.modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.chat-modal-content {
    width: 100%;
    max-width: 500px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 20px;
}

.chat-header {
    padding: 15px 20px;
    background: var(--gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    white-space: pre-wrap;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.message.typing {
    opacity: 0.7;
    font-size: 13px;
}

.message.ai .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.message.ai .text {
    flex: 1;
    white-space: pre-wrap;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatInput {
    flex: 1;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
}

#chatInput:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

#chatSend {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chatSend:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}


/* Footer */
.footer { background: rgba(0, 0, 0, 0.5); padding: 60px 0 30px; margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-section h3 { color: white; margin-bottom: 25px; font-size: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--gray-light); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--gray-light); font-size: 14px; }

/* Notification */
.notification { position: fixed; bottom: 100px; right: 30px; background: var(--dark-light); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 15px; max-width: 400px; z-index: 1001; transform: translateX(100%); transition: transform 0.3s ease; }
.notification.show { transform: translateX(0); }
.notification-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.notification.success .notification-icon { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.notification.error .notification-icon { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.notification-content { flex: 1; }
.notification-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 5px; }
.notification-message { font-size: 14px; color: var(--gray-light); }

/* Auth Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--dark-light); padding: 40px; border-radius: var(--radius-lg); width: 100%; max-width: 450px; position: relative; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-xl); }
.modal-close { position: absolute; top: 20px; right: 20px; color: var(--gray-light); font-size: 24px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: white; }
.modal-title { font-size: 28px; margin-bottom: 10px; text-align: center; }
.modal-subtitle { color: var(--gray-light); text-align: center; margin-bottom: 30px; font-size: 15px; }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--gray-light); }
.auth-form input { width: 100%; padding: 12px 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); color: white; font-size: 15px; transition: var(--transition); }
.auth-form input:focus { outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.08); }
.auth-submit { width: 100%; padding: 14px; margin-top: 10px; }
.auth-switch { text-align: center; margin-top: 25px; font-size: 14px; color: var(--gray-light); }
.auth-switch span { color: var(--primary); cursor: pointer; font-weight: 600; }
.auth-switch span:hover { text-decoration: underline; }
.error-message { color: var(--danger); font-size: 13px; margin-top: 10px; text-align: center; display: none; }

/* Responsive */
@media (max-width: 1024px) { .hero-title { font-size: 48px; } .section-title { font-size: 36px; } .nav-menu { gap: 20px; } .search-bar { max-width: 300px; } }
@media (max-width: 768px) { .header-content { flex-wrap: wrap; } .search-bar { order: 3; max-width: 100%; margin: 20px 0 0; } .mobile-menu-btn { display: block; } .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-light); padding: 20px; flex-direction: column; gap: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .nav-menu.active { display: flex; } .auth-buttons, .user-profile { margin-left: 0; width: 100%; justify-content: center; margin-top: 20px; } .hero-title { font-size: 36px; } .hero-stats { gap: 20px; } .stat-card { min-width: 150px; padding: 20px; } .stat-number { font-size: 32px; } .ai-chat-bubble { bottom: 20px; right: 20px; width: 60px; height: 60px; font-size: 24px; } }
@media (max-width: 480px) { .hero-title { font-size: 32px; } .section-title { font-size: 28px; } .tool-detail-content { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
