﻿/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background: #0f0f1e;
    margin: 0;
    padding: 0;
    color: #e4e4e7;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.15;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* ===== RANK BADGE CONTAINER (Above Buttons) ===== */
.rank-badge-container {
    margin: 15px auto;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
    max-width: 340px;
    width: 100%;
}

.rank-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rank-badge-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #fbbf24;
}

.rank-icon {
    font-size: 1.3em;
}

.rank-name {
    color: #fcd34d;
}

.rank-count {
    color: #a1a1aa;
    font-size: 0.9em;
    font-weight: 500;
}

/* Progress Bar */
.rank-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #fcd34d 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Header Buttons Row (AI Powered + Fortune) */
.header-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    max-width: 340px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5b4fc;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

/* ===== MASTER MODE SELECTOR (3 Buttons) ===== */
.master-mode-container {
    margin-bottom: 25px;
}

.master-mode-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hide radio inputs */
.master-mode-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Master Mode Labels (Buttons) */
.master-mode-option {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    user-select: none;
}

.master-mode-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Active States for Each Mode */
#modePolite:checked+.master-mode-option {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#modeBossDecoder:checked+.master-mode-option {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

#modeClapback:checked+.master-mode-option {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

#modeSarcastic:checked+.master-mode-option {
    background: linear-gradient(135deg, #ef4444 0%, #7c3aed 100%);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Remove slider if exists (old design) */
.master-mode-slider {
    display: none;
}

/* Description Text */
.master-mode-description {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #94a3b8;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .master-mode-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .master-mode-option {
        width: 100%;
    }
}

/* ===== DONATION PAGE ===== */
/* Header */
.donate-header {
    text-align: left;
    margin-bottom: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-5px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3em;
    color: #94a3b8;
    margin-bottom: 50px;
}

/* QR Payment Cards */
.qr-payment-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.qr-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.qr-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fbbf24;
}

.qr-image-wrapper {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    display: inline-block;
}

.qr-image {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-info {
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 1em;
}

.qr-detail {
    color: #94a3b8;
    font-size: 0.95em;
}

.qr-detail strong {
    color: #fbbf24;
}

/* Wall of Fame Section */
.wall-of-fame-section {
    margin-bottom: 80px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1em;
    margin-bottom: 50px;
}

/* Donors Grid */
.donors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Donor Card - VIP Ticket Style */
.donor-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donor-card:hover::before {
    opacity: 1;
}

.donor-card:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    transform: translateY(-5px);
}

/* ===== TIER SYSTEM STYLING ===== */
/* CSS Variables for Tier Colors */
:root {
    --diamond-gradient: linear-gradient(135deg, #fbbf24 0%, #a855f7 50%, #ec4899 100%);
    --gold-color: #fbbf24;
    --silver-color: #94a3b8;
    --bronze-color: #92400e;
}

/* Tier Badge */
.tier-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Diamond Tier (>=500k) */
.donor-card.tier-diamond {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.donor-card.tier-diamond::before {
    opacity: 1;
    height: 4px;
    background: var(--diamond-gradient);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.donor-card.tier-diamond {
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 15, 30, 0.8), rgba(15, 15, 30, 0.8)),
        var(--diamond-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3),
            0 0 40px rgba(168, 85, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6),
            0 0 60px rgba(168, 85, 247, 0.4),
            inset 0 0 20px rgba(251, 191, 36, 0.1);
    }
}

.donor-card.tier-diamond .tier-badge {
    background: var(--diamond-gradient);
    color: #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.donor-card.tier-diamond .donor-avatar {
    background: var(--diamond-gradient);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
    }

    50% {
        box-shadow: 0 8px 40px rgba(168, 85, 247, 0.8);
    }
}

/* Gold Tier (>=100k) */
.donor-card.tier-gold {
    border: 2px solid var(--gold-color);
    background: rgba(251, 191, 36, 0.05);
}

.donor-card.tier-gold::before {
    opacity: 1;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
}

.donor-card.tier-gold .tier-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f0f1e;
}

.donor-card.tier-gold .donor-avatar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.donor-card.tier-gold:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
    border-color: #fbbf24;
}

/* Silver Tier (>=20k) */
.donor-card.tier-silver {
    border: 2px solid var(--silver-color);
    background: rgba(148, 163, 184, 0.05);
}

.donor-card.tier-silver::before {
    opacity: 1;
    background: linear-gradient(90deg, #94a3b8, #cbd5e1, #94a3b8);
}

.donor-card.tier-silver .tier-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    color: #0f0f1e;
}

.donor-card.tier-silver .donor-avatar {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.4);
}

.donor-card.tier-silver:hover {
    box-shadow: 0 0 30px rgba(148, 163, 184, 0.4);
    border-color: #cbd5e1;
}

/* Bronze Tier (<20k) */
.donor-card.tier-bronze {
    border: 1px solid rgba(146, 64, 14, 0.3);
}

.donor-card.tier-bronze .tier-badge {
    background: rgba(146, 64, 14, 0.6);
    color: #fff;
}


/* Donor Avatar */
.donor-avatar-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: block;
}

.donor-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.donor-name {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #e4e4e7;
}

.donor-donation {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
}

.donor-message {
    color: #94a3b8;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.donor-link-icon {
    color: #60a5fa;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donor-card:hover .donor-link-icon {
    opacity: 1;
}

/* Placeholder "Your Name Here" Card */
.donor-card.placeholder {
    border: 2px dashed rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.05);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        border-color: rgba(251, 191, 36, 0.3);
        box-shadow: 0 0 0 rgba(251, 191, 36, 0);
    }

    50% {
        border-color: rgba(251, 191, 36, 0.8);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    }
}

.placeholder-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.placeholder-title {
    font-size: 1.3em;
    color: #fbbf24;
    margin-bottom: 15px;
}

.placeholder-message {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.placeholder-cta {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f0f1e;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.placeholder-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .qr-payment-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .donors-grid {
        grid-template-columns: 1fr;
    }

    .donor-card {
        padding: 25px;
    }
}

/* ===== FLOATING DONATE BUTTON ===== */
.donate-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {

    0%,
    100% {
        transform: translateY(0px);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    }

    50% {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(251, 191, 36, 0.7);
    }
}

.donate-floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.8);
}

.donate-icon {
    font-size: 1.8em;
    line-height: 1;
}

.donate-text {
    font-size: 0.7em;
    font-weight: 700;
    color: #0f0f1e;
    margin-top: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .donate-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .donate-icon {
        font-size: 1.5em;
    }

    .donate-text {
        font-size: 0.6em;
    }
}


h1 {
    font-size: 4em;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}

.subtitle {
    font-size: 1.5em;
    color: #a5b4fc;
    font-weight: 600;
    margin: 10px 0;
}

.description {
    font-size: 1.1em;
    color: #94a3b8;
    margin: 10px 0 30px;
}

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

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9em;
    color: #94a3b8;
    margin-top: 5px;
}

/* ===== CARD STYLING ===== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.2);
}

/* ===== TOOL WRAPPER ===== */
.tool-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header .icon {
    font-size: 1.5em;
}

.section-header label {
    font-weight: 700;
    font-size: 1.1em;
    color: #e4e4e7;
    margin: 0;
}

/* ===== INPUT SECTION ===== */
.textarea-wrapper {
    position: relative;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 20px;
    background: rgba(15, 15, 30, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 16px;
    color: #e4e4e7;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(15, 15, 30, 0.8);
}

textarea::placeholder {
    color: #64748b;
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.85em;
    color: #64748b;
    pointer-events: none;
}

/* ===== ACTION BUTTON ===== */
button#convertBtn {
    position: relative;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button#convertBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

button#convertBtn:active {
    transform: translateY(-1px);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.btn-icon {
    font-size: 1.3em;
}

button#convertBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== OUTPUT SECTION ===== */
.output-box {
    background: rgba(15, 15, 30, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
    font-size: 16px;
    line-height: 1.8;
    color: #e4e4e7;
    white-space: pre-wrap;
    transition: all 0.3s ease;
}

.placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: #64748b;
    text-align: center;
}

.placeholder-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.copy-btn {
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    float: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    margin-top: 80px;
    animation: fadeIn 1.2s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #e4e4e7;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ===== EXAMPLES SECTION ===== */
.examples-section {
    margin-top: 80px;
    animation: fadeIn 1.4s ease;
}

.examples-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-card {
    background: rgba(15, 15, 30, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: scale(1.02);
}

.example-label {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 15px;
}

.example-label.before {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.example-label.after {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.example-text {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95em;
}

.arrow {
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    margin-top: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.seo-content h2 {
    color: #e4e4e7;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.seo-content h3 {
    color: #cbd5e1;
    font-size: 1.3em;
    margin: 25px 0 15px;
}

.seo-content ul {
    padding-left: 25px;
    line-height: 1.9;
}

.seo-content li {
    margin: 10px 0;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.95em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2.5em;
    }

    .stats-row {
        gap: 20px;
    }

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

    .examples-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .card {
        padding: 20px;
    }
}

/* --- AdSense Optimizations --- */
.sticky-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sticky-ad-content {
    min-width: 320px;
    min-height: 50px;
    max-width: 100%;
}

body {
    padding-bottom: 80px;
    /* Space for the ad */
}

.close-sticky-ad {
    position: absolute;
    top: -30px;
    right: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 0.8em;
}

/* --- Secondary Buttons (Random Btn) --- */
.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    /* Match card bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 16px;
    /* Optimized padding */
    border-radius: 10px;
    /* Match action buttons radius */
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Action Buttons (Share/Copy) --- */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    /* Fixed height for consistency */
}

/* Copy Button */
.copy-btn {
    margin-top: 0;
    float: none;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

/* Share Button */
.share-btn {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.share-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* --- History Section --- */
.history-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    animation: fadeIn 0.5s ease;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-content {
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
}

.history-input {
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-output {
    font-size: 0.95em;
    color: #e4e4e7;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.history-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.clear-history-btn {
    background: transparent;
    border: none;
    color: #f87171;
    font-size: 0.85em;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px 10px;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Cookie Consent Banner --- */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    gap: 15px;
    animation: slideUpFade 0.4s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-content {
    flex: 1;
}

.cookie-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-content p:first-child {
    margin-bottom: 8px;
}

.cookie-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-accept-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }

    .cookie-accept-btn {
        width: 100%;
    }
}

/* --- Context Selectors --- */
.context-selectors {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 200px;
}

.selector-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: #e4e4e7;
    margin-bottom: 8px;
}

.selector-icon {
    font-size: 1.2em;
}

.context-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e4e4e7;
    font-size: 0.95em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.context-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 15, 30, 0.8);
}

.context-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.context-select option {
    background: #1a1a2e;
    color: #e4e4e7;
    padding: 10px;
}

/* Regenerate Button */
.regenerate-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.regenerate-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
    .context-selectors {
        flex-direction: column;
        gap: 15px;
    }

    .selector-group {
        min-width: 100%;
    }
}

/* --- Language Selector --- */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.lang-icon {
    font-size: 1.3em;
}

.lang-select {
    background: rgba(15, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    color: #e4e4e7;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lang-select:hover {
    background: rgba(15, 15, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.lang-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.lang-select option {
    background: #1a1a2e;
    color: #e4e4e7;
    padding: 10px;
}

@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }

    .lang-select {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

/* --- Blog Badge Button (Matching Convert Button Style) --- */
.blog-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 15px;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.blog-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.blog-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.blog-badge:active {
    transform: translateY(-1px);
}

/* --- FEEDBACK FLOATING BUTTON & MODAL --- */
.feedback-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.feedback-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

/* ===== MASTER MODE TOGGLE ===== */
.master-mode-container {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.master-mode-wrapper {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.master-mode-wrapper input[type="radio"] {
    display: none;
}

.master-mode-option {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05em;
    color: #a1a1aa;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    user-select: none;
}

.master-mode-option:hover {
    color: #e4e4e7;
}

.master-mode-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Boss Decoder Mode Active */
#modeBossDecoder:checked~.master-mode-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

#modePolite:checked+label {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#modeBossDecoder:checked+label {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.master-mode-description {
    margin-top: 12px;
    font-size: 0.9em;
    color: #71717a;
    text-align: center;
    font-style: italic;
}

/* Boss Decoder Theme Override */
body.boss-decoder-active {
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}

body.boss-decoder-active .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

body.boss-decoder-active .btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #ef4444 100%);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

/* Boss Decoder Disclaimer */
.boss-decoder-disclaimer {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid rgba(245, 158, 11, 0.5);
    border-radius: 6px;
    font-size: 0.85em;
    color: #fbbf24;
    text-align: center;
}

/* ===== GLOBAL MODE TOGGLE ===== */
.mode-toggle-container {
    margin-bottom: 25px;
    text-align: center;
}

.mode-toggle-wrapper {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-toggle-wrapper input[type="radio"] {
    display: none;
}

.mode-option {
    padding: 10px 25px;
    cursor: pointer;
    z-index: 2;
    color: #a1a1aa;
    font-weight: 500;
    transition: color 0.3s ease;
    user-select: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Toggle Logic */
#modeIngratiating:checked~.mode-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    /* Pink for Thảo Mai */
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

#modeDiplomatic:checked+label {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#modeIngratiating:checked+label {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mode-description {
    margin-top: 10px;
    font-size: 0.85em;
    color: #71717a;
    font-style: italic;
    min-height: 20px;
    transition: all 0.3s ease;
}



/* ===== TEMPLATE MODAL ===== */
.template-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.template-btn:hover {
    transform: translateX(5px);
}

/* Stressful Theme */
.template-btn.stressful {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.template-btn.stressful:hover {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Soft Theme */
.template-btn.soft {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.template-btn.soft:hover {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

@media (max-width: 600px) {
    .template-categories {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FEEDBACK MODAL ===== */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.feedback-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    animation: slideDown 0.3s ease;
}

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

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

.feedback-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

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

.feedback-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* ===== FORTUNE/TAROT BUTTON & MODAL ===== */
.fortune-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.fortune-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
}

.fortune-btn:active {
    transform: translateY(0) scale(0.98);
}

.fortune-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    max-width: 500px;
}

.fortune-content {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 15px 0;
}

.fortune-content p {
    font-size: 1.15em;
    line-height: 1.8;
    text-align: center;
    color: #e4e4e7;
    margin: 0;
}

/* ===== PERSONALITY ANALYSIS SECTION ===== */
.analysis-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease;
}

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

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

.analysis-title {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analysis-item.full-width {
    grid-column: 1 / -1;
}

.analysis-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-weight: 600;
}

/* Anger Bar */
.anger-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.anger-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fbbf24 0%, #ef4444 50%, #dc2626 100%);
    border-radius: 15px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.anger-score-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: 1em;
}

/* EQ Badge */
.eq-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Archetype */
.archetype-text {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
}

/* Advice Box */
.advice-box {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid #10b981;
    border-radius: 12px;
    font-style: italic;
}

.advice-box p {
    margin: 0;
    color: #e4e4e7;
    font-size: 1.05em;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== OFFICE SOUNDBOARD ===== */
.soundboard-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.soundboard-title {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 5px;
    text-align: center;
}

.soundboard-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 25px;
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Neumorphism Sound Buttons */
.sound-btn {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sound-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.06);
}

.sound-btn:active {
    transform: scale(0.95);
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.03);
}

.sound-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
}

.sound-label {
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

/* Individual button glows */
.money-btn {
    border-color: rgba(251, 191, 36, 0.3);
}

.money-btn:hover {
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(251, 191, 36, 0.3);
}

.cricket-btn {
    border-color: rgba(139, 92, 246, 0.3);
}

.cricket-btn:hover {
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(139, 92, 246, 0.3);
}

.clap-btn {
    border-color: rgba(239, 68, 68, 0.3);
}

.clap-btn:hover {
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(239, 68, 68, 0.3);
}

.relax-btn {
    border-color: rgba(16, 185, 129, 0.3);
}

.relax-btn:hover {
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(16, 185, 129, 0.3);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    .soundboard-grid {
        gap: 15px;
    }

    .sound-btn {
        padding: 25px 15px;
    }

    .sound-icon {
        font-size: 2.5em;
    }

    .soundboard-section {
        padding: 20px 15px;
    }
}

/* ===== DONATE/COFFEE BUTTON ===== */
.donate-floating-btn {
    position: fixed;
    left: 25px;
    /* Back to left side */
    bottom: 25px;
    min-width: 65px;
    height: 65px;
    padding: 0 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 50px;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4),
        0 0 20px rgba(251, 191, 36, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: shakeDonate 8s ease-in-out infinite;
    white-space: nowrap;
}

/* ===== QUOTE CARD TEMPLATE (Hidden, for Export) ===== */
.quote-card-template {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1080px;
    height: 1920px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 80px 60px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.quote-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card-header {
    text-align: center;
    margin-bottom: 60px;
}

.quote-card-logo {
    font-size: 72px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.quote-card-slogan {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.quote-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}

.quote-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.quote-label {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.quote-text {
    font-size: 40px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 400;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.before-section {
    border-left: 8px solid #ef4444;
}

.after-section {
    border-left: 8px solid #10b981;
}

.quote-card-footer {
    text-align: center;
    margin-top: 40px;
}

.quote-card-footer p {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 600;
}

/* Export button styling */
.export-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.export-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-2px);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== IMAGE PREVIEW MODAL ===== */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
}

.image-preview-content {
    position: relative;
    margin: 2% auto;
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

.image-preview-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.image-preview-close:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.image-preview-content h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 2em;
}

.preview-hint {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.preview-canvas-container {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.preview-download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.preview-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.preview-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.preview-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .image-preview-content {
        padding: 20px;
        margin: 5% auto;
    }

    #previewCanvas {
        max-height: 70vh;
    }

    .preview-actions {
        flex-direction: column;
    }
}

.donate-icon {
    font-size: 1.2em;
    line-height: 1;
}

.donate-text {
    font-size: 0.5em;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Tooltip/Speech Bubble */
.donate-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 15px;
    /* Align to left side of button more naturally */
    transform: translateX(0) scale(0);
    transform-origin: bottom left;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    /* Callout style */
    font-size: 0.45em;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1000;
}

.donate-tooltip::after {
    display: none;
    /* Remove arrow for cleaner look on side */
}

/* Tooltip show state */
.donate-tooltip.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.donate-floating-btn:hover .donate-tooltip {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.donate-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6),
        0 0 30px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    border-color: rgba(251, 191, 36, 0.8);
}

.donate-floating-btn:active {
    transform: scale(0.95);
}

/* Shake Animation - triggers every 8 seconds */
@keyframes shakeDonate {

    0%,
    6%,
    94%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    1%,
    3%,
    5% {
        transform: translateX(-3px) rotate(-5deg);
    }

    2%,
    4% {
        transform: translateX(3px) rotate(5deg);
    }
}

/* QR Container styling */
.qr-container {
    position: relative;
    overflow: hidden;
}

.qr-container img {
    transition: transform 0.3s ease;
}

.qr-container:hover img {
    transform: scale(1.02);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .donate-floating-btn {
        width: 55px;
        height: 55px;
        min-width: 55px;
        padding: 0;
        font-size: 1.6em;
        left: 15px;
        /* Keep on left */
        right: auto;
        bottom: 15px;
        border-radius: 50%;
    }

    .donate-text {
        display: none;
    }

    .donate-icon {
        font-size: 1em;
    }

    .donate-tooltip {
        font-size: 0.55em;
        padding: 8px 12px;
        left: calc(100% + 10px);
        /* Show to the right of button on mobile */
        right: auto;
        bottom: 50%;
        transform: translateY(50%) scale(0);
        transform-origin: left center;
        border-radius: 12px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .donate-tooltip::after {
        right: -8px;
        left: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
    }

    .donate-tooltip.show,
    .donate-floating-btn:hover .donate-tooltip {
        transform: translateY(50%) scale(1);
    }
}

/* ===== BOSS SENSOR BUTTON (Fixed Position) ===== */
.panic-btn {
    position: fixed;
    bottom: 30px;
    right: 110px;
    /* 30px (margin) + 60px (feedback btn width) + 20px (gap) */
    width: 50px;
    height: 50px;
    background: #ef4444;
    /* Red for alert */
    border-radius: 50%;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.panic-btn:hover {
    transform: scale(1.1);
}

/* ===== DRAMA CORNER SECTION ===== */
.drama-section {
    position: relative;
    background: linear-gradient(135deg, #2e1065 0%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    overflow: hidden;
    margin-bottom: 25px;
}

.drama-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 100px 100px;
    opacity: 0.3;
    animation: sparkle 5s infinite alternate;
}

@keyframes sparkle {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.5;
    }
}

.drama-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.drama-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drama-icon {
    font-size: 1.4em;
    animation: firePulse 1.5s infinite alternate;
}

@keyframes firePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
    }

    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
    }
}

.drama-title h3 {
    margin: 0;
    font-size: 1.1em;
    background: linear-gradient(90deg, #f472b6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.drama-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 800;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: blinkRed 2s infinite;
}

@keyframes blinkRed {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Scroll Container */
.drama-container {
    height: 300px;
    /* Visible height */
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.drama-scroll-wrapper {
    animation: scrollUp 40s linear infinite;
    /* Adjusted speed */
    padding-top: 20px;
}

.drama-container:hover .drama-scroll-wrapper {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }

    /* Setup for duplicate list trick */
}

/* Drama Item Card */
.drama-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.drama-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.drama-role {
    display: inline-block;
    color: #f472b6;
    /* Pink */
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drama-input {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 6px;
    padding-left: 8px;
    border-left: 2px solid rgba(148, 163, 184, 0.3);
}

.drama-arrow {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8em;
    margin: 2px 0;
}

.drama-output {
    color: #e4e4e7;
    font-size: 0.95em;
    line-height: 1.4;
    font-weight: 500;
}

.drama-loading {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    font-style: italic;
}

/* ===== FAKE SCREEN (BOSS SENSOR) ===== */
#fakeScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0078D4;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Segoe UI Light', 'Segoe UI', Arial, sans-serif;
    cursor: none;
}

#fakeScreen.active {
    display: flex;
}

/* Windows 10/11 Style Dotted Spinner */
.windows-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 50px;
    animation: windows-spinner-rotate 5s linear infinite;
}

.windows-spinner .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 0;
    left: 50%;
    margin-left: -4px;
    transform-origin: 4px 40px;
}

.windows-spinner .dot:nth-child(1) {
    animation: windows-dot 1.5s ease-in-out infinite;
    animation-delay: 0s;
}

.windows-spinner .dot:nth-child(2) {
    animation: windows-dot 1.5s ease-in-out infinite;
    animation-delay: 0.15s;
    transform: rotate(45deg);
}

.windows-spinner .dot:nth-child(3) {
    animation: windows-dot 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
    transform: rotate(90deg);
}

.windows-spinner .dot:nth-child(4) {
    animation: windows-dot 1.5s ease-in-out infinite;
    animation-delay: 0.45s;
    transform: rotate(135deg);
}

.windows-spinner .dot:nth-child(5) {
    animation: windows-dot 1.5s ease-in-out infinite;
    animation-delay: 0.6s;
    transform: rotate(180deg);
}

@keyframes windows-spinner-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes windows-dot {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

#fakeScreen h1 {
    font-weight: 200;
    font-size: 2.2em;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

#fakeScreen .percentage {
    font-weight: 200;
    font-size: 1.8em;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

#fakeScreen .warning {
    font-weight: 200;
    font-size: 1.5em;
    margin-top: 5px;
    letter-spacing: 0.5px;
}


/* ===== TEMPLATE BUTTONS ===== */
.template-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.template-btn.stressful {
    background: rgba(252, 165, 165, 0.1);
    border: 1px solid rgba(252, 165, 165, 0.3);
    color: #fca5a5;
}

.template-btn.stressful:hover {
    background: rgba(252, 165, 165, 0.2);
    transform: translateX(5px);
}

.template-btn.soft {
    background: rgba(134, 239, 172, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.3);
    color: #86efac;
}

.template-btn.soft:hover {
    background: rgba(134, 239, 172, 0.2);
    transform: translateX(5px);
}

/* ===== BLOG INDEX PAGE STYLES ===== */

/* Blog Hero Section */
.blog-hero {
    margin-bottom: 60px;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    pointer-events: none;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    font-size: 1.1em;
    color: #e4e4e7;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Blog Card Thumbnail */
.blog-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumbnail img {
    transform: scale(1.1);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Blog Card Content */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card-excerpt {
    font-size: 0.95em;
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #764ba2;
    gap: 10px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.8em;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1.1em;
}

/* Back Button Enhancement */
.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-5px);
}

/* Responsive Design */

/* Tablet (2 columns) */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile (1 column) */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2em !important;
    }

    .blog-hero .subtitle {
        font-size: 1em !important;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input {
        font-size: 1em;
        padding: 16px 20px 16px 55px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-thumbnail {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.15em;
    }

    .blog-card-excerpt {
        font-size: 0.9em;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .blog-card-thumbnail {
        height: 160px;
    }

    .category-badge {
        font-size: 0.7em;
        padding: 5px 10px;
    }
}