@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Chokokutai&display=swap');

:root {
    /* Dark Mode Colors */
    --dark-bg: #0a0a0f;
    --dark-card: rgba(25, 25, 35, 0.85);
    --dark-text: #ffffff;
    --dark-text-secondary: #b4b4c8;
    --dark-border: rgba(255, 255, 255, 0.1);
    
    /* Bright Mode Colors */
    --bright-bg: #fef7ff;
    --bright-card: rgba(255, 255, 255, 0.95);
    --bright-text: #1a1a2e;
    --bright-text-secondary: #6b6b8c;
    --bright-border: rgba(0, 0, 0, 0.1);
    
    /* Accent Colors */
    --cyber-pink: #ff006e;
    --lavender: #b388ff;
    --cyber-blue: #00d9ff;
    --soft-peach: #ffb4a2;
    --deep-purple: #7209b7;
    --lime-green: #38ef7d;
    --sunset-orange: #ff6b6b;
    --teal-blue: #4ecdc4;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--cyber-pink), var(--deep-purple));
    --gradient-2: linear-gradient(135deg, var(--cyber-blue), var(--lavender));
    --gradient-3: linear-gradient(135deg, var(--soft-peach), var(--cyber-pink));
    --gradient-4: linear-gradient(135deg, var(--lime-green), var(--teal-blue));
    --gradient-5: linear-gradient(135deg, var(--sunset-orange), var(--cyber-pink));
}

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

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif; /* Changed font */
    background: var(--dark-bg);
    color: var(--dark-text);
    min-height: 100vh;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.bright-mode {
    background: var(--bright-bg);
    color: var(--bright-text);
}

/* Prevent scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Remove blue highlight on tap/click */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-card);
    border-radius: 10px;
}

.bright-mode ::-webkit-scrollbar-track {
    background: var(--bright-card);
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-pink);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-purple);
}

.bright-mode ::-webkit-scrollbar-thumb {
    background: var(--lavender);
}

.bright-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-pink);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--gradient-2);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-4);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--dark-border);
    background: var(--dark-card);
    color: var(--dark-text);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.bright-mode .theme-toggle {
    border-color: var(--bright-border);
    background: var(--bright-card);
    color: var(--bright-text);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Theme Toggle & Premium Button Container */
.header-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.theme-toggle {
    position: static; /* Reset fixed positioning since it's in container now */
}

.premium-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.premium-btn:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Active Premium State */
.premium-btn.is-premium {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: pulse-gold 3s infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
}

/* App Container */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

/* Logo Styling */
.logo-text {
    font-family: 'Chokokutai', cursive;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 3.5rem;
    background: linear-gradient(90deg, #ff006e 0%, #00d9ff 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 24px #ff006e55, 0 0px 8px #ffd70055;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.logo-small h2 {
    font-family: 'Chokokutai', cursive;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff006e 0%, #00d9ff 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 24px #ff006e55, 0 0px 8px #ffd70055;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    cursor: pointer;
    padding-right: 20px;
    line-height: 1.2;
}

.duvv-icon-small {
    display: none !important;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 8px;
}

.logo-small h2 {
    font-size: 4.5rem; /* Increased size */
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    cursor: pointer;
}

.logout-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid var(--dark-border);
    background: transparent;
    color: var(--dark-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bright-mode .logout-btn {
    border-color: var(--bright-border);
    color: var(--bright-text-secondary);
}

.logout-btn:hover {
    border-color: var(--cyber-pink);
    color: var(--cyber-pink);
    transform: translateY(-2px);
}

/* Profile Card */
.profile-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    animation: slideUp 0.5s ease;
}

.bright-mode .profile-card {
    background: var(--bright-card);
    border-color: var(--bright-border);
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 24px; /* Squircle shape */
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse-glow 3s infinite ease-in-out;
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.duvv-icon-profile {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.9));
}

.username {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Profile Code Section */
.profile-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    width: fit-content;
}

.bright-mode .profile-code-section {
    background: rgba(0, 0, 0, 0.05);
}

.code-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.code-hidden-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--dark-text-secondary);
    transition: color 0.3s ease;
}

.bright-mode .code-hidden-text {
    color: var(--bright-text-secondary);
}

.code-toggle-btn, .code-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bright-mode .code-toggle-btn, 
.bright-mode .code-copy-btn {
    color: var(--bright-text);
}

.code-toggle-btn:hover, 
.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cyber-pink);
}

.profile-stats {
    font-size: 14px;
    color: var(--dark-text-secondary);
}

.bright-mode .profile-stats {
    color: var(--bright-text-secondary);
}

.btn-create-rant {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--gradient-2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-create-rant::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-create-rant:hover::before {
    width: 300px;
    height: 300px;
}

.btn-create-rant span {
    position: relative;
    z-index: 1;
}

.btn-create-rant:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-create-rant:active {
    transform: translateY(0);
}

/* Rants Section */
.rants-section {
    animation: slideUp 0.6s ease 0.1s backwards;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid var(--dark-border);
    background: transparent;
    color: var(--dark-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bright-mode .filter-btn {
    border-color: var(--bright-border);
    color: var(--bright-text-secondary);
}

.filter-btn:hover {
    border-color: var(--lavender);
    color: var(--lavender);
}

/* Rants Container */
.rants-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

/* Responses Grid Layout */
.responses-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Force 2 columns with overflow fix */
    gap: 12px;
    margin-bottom: 32px;
}

/* Mobile adjustment for grid */
@media (max-width: 480px) {
    .responses-container {
        /* grid-template-columns: 1fr; REMOVED to keep 2 columns */
        gap: 8px;
    }
    
    .response-card {
        padding: 12px;
    }
    
    .response-text {
        font-size: 13px;
    }
}

/* Empty State */
.empty-state {
    background: var(--dark-card);
    border: 2px dashed var(--dark-border);
    border-radius: 20px;
    padding: 60px 32px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.bright-mode .empty-state {
    background: var(--bright-card);
    border-color: var(--bright-border);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--dark-text-secondary);
    font-size: 14px;
}

.bright-mode .empty-state p {
    color: var(--bright-text-secondary);
}

/* Rant Card */
.rant-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.rant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    opacity: 0.5;
}

.bright-mode .rant-card {
    background: var(--bright-card);
    border-color: var(--bright-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.rant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.rant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.rant-status {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-copy-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.card-copy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-copy-btn:active {
    transform: scale(0.95);
}

.rant-question {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    flex-grow: 1;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.rant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    padding-top: 16px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.rant-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    z-index: 2000;
}

body.bright-mode .modal-backdrop {
    background: rgba(255, 255, 255, 0.85);
}

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

.modal-content {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(20px);
    z-index: 2001;
    margin: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-pink) transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.bright-mode .modal-content {
    background: #ffffff;
    border-color: var(--bright-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--cyber-pink);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--deep-purple);
}

.bright-mode .modal-content::-webkit-scrollbar-thumb {
    background: var(--lavender);
}

.bright-mode .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-pink);
}

.modal-large {
    max-width: 800px;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.bright-mode .modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bright-text);
}

.modal-close:hover {
    background: var(--cyber-pink);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.bright-mode .modal-subtitle {
    color: var(--bright-text-secondary);
}

/* Step Container */
.step-container {
    animation: slideInStep 0.4s ease;
    min-height: 300px;
}

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

.back-step {
    background: transparent;
    border: none;
    color: var(--dark-text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.bright-mode .back-step {
    color: var(--bright-text-secondary);
}

.back-step:hover {
    color: var(--cyber-pink);
    transform: translateX(-4px);
}

/* Preset Questions */
.preset-questions {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.preset-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--dark-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.bright-mode .preset-btn {
    border-color: var(--bright-border);
    background: rgba(0, 0, 0, 0.03);
    color: var(--bright-text);
}

.preset-btn:hover {
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.1);
    transform: translateX(4px);
}

.preset-btn.selected {
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.2);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.preset-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.preset-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--dark-text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.bright-mode .divider {
    color: var(--bright-text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dark-border);
}

.bright-mode .divider::before,
.bright-mode .divider::after {
    background: var(--bright-border);
}

.divider span {
    padding: 0 16px;
}

/* Custom Question */
.custom-question {
    position: relative;
    margin-bottom: 32px;
}

.custom-question textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--dark-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.bright-mode textarea {
    border-color: var(--bright-border);
    background: rgba(0, 0, 0, 0.03);
    color: var(--bright-text);
}

textarea:focus {
    outline: none;
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.1);
}

.char-count {
    position: absolute;
    bottom: -24px;
    right: 0;
    font-size: 12px;
    color: var(--dark-text-secondary);
}

.bright-mode .char-count {
    color: var(--bright-text-secondary);
}

/* Theme Categories */
.theme-categories {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.theme-pack {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--dark-border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bright-mode .theme-pack {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--bright-border);
}

.theme-pack:hover {
    transform: translateY(-4px);
    border-color: var(--cyber-pink);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.2);
}

.theme-pack.selected {
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.15);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

.theme-pack-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--dark-text);
}

.bright-mode .theme-pack-name {
    color: var(--bright-text);
}

.theme-colors {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid;
}

.theme-preview-text {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid;
}

/* Response Types */
.response-types {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.response-type-hint {
    text-align: center;
    font-size: 13px;
    color: var(--dark-text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.bright-mode .response-type-hint {
    color: var(--bright-text-secondary);
}

.response-type-card {
    cursor: pointer;
}

.response-type-card input[type="checkbox"] {
    display: none;
}

.response-card-content {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid var(--dark-border);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.bright-mode .response-card-content {
    border-color: var(--bright-border);
    background: rgba(0, 0, 0, 0.03);
}

.response-type-card:hover .response-card-content {
    border-color: var(--lavender);
    transform: translateY(-2px);
}

.response-type-card input:checked ~ .response-card-content {
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.15);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.response-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.response-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-text);
}

.bright-mode .response-card-content h4 {
    color: var(--bright-text);
}

.response-card-content p {
    font-size: 14px;
    color: var(--dark-text-secondary);
}

.bright-mode .response-card-content p {
    color: var(--bright-text-secondary);
}

/* Success Animation */
.success-animation {
    text-align: center;
    margin-bottom: 32px;
}

.success-animation .success-icon {
    font-size: 80px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-animation h2 {
    margin-top: 16px;
}

/* Rant Preview in Step 4 */
.rant-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid var(--dark-border);
}

.bright-mode .rant-preview {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--bright-border);
}

.preview-question {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-gradient:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--dark-border);
    color: var(--dark-text);
}

.bright-mode .btn-secondary {
    border-color: var(--bright-border);
    color: var(--bright-text);
}

.btn-secondary:hover {
    border-color: var(--lavender);
    background: rgba(179, 136, 255, 0.1);
}

/* Rant Detail */
.rant-detail-header {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--dark-border);
    position: relative; /* For absolute positioning of copy button */
}

.header-copy-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

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

.header-copy-btn:active {
    transform: scale(0.95);
}

.rant-meta {
    font-size: 13px;
    margin-top: 0;
    opacity: 0.8;
}

.responses-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.responses-container {
    margin-bottom: 32px;
}

.empty-responses {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-text-secondary);
}

.bright-mode .empty-responses {
    color: var(--bright-text-secondary);
}

.response-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bright-mode .response-card {
    background: rgba(0, 0, 0, 0.03);
}

.response-card:hover {
    border-color: var(--cyber-pink);
    transform: translateX(4px);
}

.response-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.response-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-text {
    background: rgba(179, 136, 255, 0.2);
    color: var(--lavender);
}

.badge-audio {
    background: rgba(255, 107, 107, 0.2);
    color: var(--sunset-orange);
}

.badge-drawing {
    background: rgba(56, 239, 125, 0.2);
    color: var(--lime-green);
}

.response-card-content {
    margin-bottom: 8px;
}

.response-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--dark-text);
}

.bright-mode .response-text {
    color: var(--bright-text);
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 110, 0.2);
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
}

.custom-audio-player .audio-play-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff006e, #7209b7);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.custom-audio-player .audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5);
}

.custom-audio-player .audio-play-btn.playing svg path {
    d: path("M6 4h4v16H6V4zm8 0h4v16h-4V4z");
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    height: 28px;
    min-width: 0;
    overflow: hidden;
}

.wave-bar {
    width: 3px;
    min-width: 3px;
    background: linear-gradient(180deg, #ff006e, #7209b7);
    border-radius: 2px;
    height: 20%;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 80%; }
}

.custom-audio-player.playing .wave-bar {
    animation-play-state: running;
}

.custom-audio-player:not(.playing) .wave-bar {
    animation-play-state: paused;
    height: 20%;
}

.audio-time {
    font-size: 12px;
    color: var(--cyber-pink);
    font-weight: 600;
    min-width: 35px;
    max-width: 35px;
    text-align: right;
    flex-shrink: 0;
}

body.bright-mode .audio-time {
    color: var(--lavender);
}

.response-audio-preview,
.response-drawing-preview {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sunset-orange);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.audio-duration {
    font-size: 13px;
    font-weight: 600;
    color: var(--sunset-orange);
}

.response-drawing-preview {
    max-height: 200px;
    object-fit: contain;
    background: rgba(56, 239, 125, 0.1);
}

.response-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--dark-text-secondary);
    margin-top: 8px;
}

.bright-mode .response-card-footer {
    color: var(--bright-text-secondary);
}

/* Response Detail Modal */
.response-detail-content {
    margin-bottom: 32px;
}

.detail-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    line-height: 1.5;
}

.detail-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.bright-mode .detail-answer {
    color: var(--bright-text);
    background: rgba(0, 0, 0, 0.03);
}

.detail-audio-player {
    width: 100%;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.audio-player-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-5);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    margin: 0 auto 20px;
    display: block;
    transition: all 0.3s ease;
}

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

.audio-waveform {
    width: 100%;
    height: 60px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
}

.waveform-bar {
    width: 4px;
    background: var(--sunset-orange);
    border-radius: 2px;
    animation: waveAnimation 1s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.waveform-bar:nth-child(7) { animation-delay: 0.2s; }
.waveform-bar:nth-child(8) { animation-delay: 0.1s; }

.detail-drawing {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(56, 239, 125, 0.05);
    padding: 20px;
    display: block;
}

.response-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "share download"
        "hints hints"
        "delete delete";
    gap: 12px;
    margin-top: 24px;
}

#shareToStoryBtn { grid-area: share; }
#downloadResponseBtn { grid-area: download; }
#getHintsBtn { grid-area: hints; }
#deleteResponseBtn { 
    grid-area: delete;
    justify-self: center;
    align-self: center;
    width: 60%;
}

/* Ensure hints button is visible in bright mode */
body.bright-mode #getHintsBtn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bright-text);
    border: 2px solid var(--bright-border);
}

body.bright-mode #getHintsBtn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 16px; /* Reduced padding */
    margin-top: 24px;
}

.bright-mode .share-section {
    background: rgba(0, 0, 0, 0.02);
}

.share-section p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bright-mode .share-section p {
    color: var(--bright-text-secondary);
}

.share-link {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.share-link input {
    flex: 1;
    padding: 10px 14px; /* Reduced padding */
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--dark-text);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.bright-mode .share-link input {
    border-color: var(--bright-border);
    background: rgba(255, 255, 255, 0.5);
    color: var(--bright-text);
}

.share-link input:focus {
    outline: none;
    border-color: var(--cyber-pink);
    background: rgba(0, 0, 0, 0.3);
}

.copy-btn {
    padding: 10px 20px; /* Reduced padding */
    background: transparent;
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bright-mode .copy-btn {
    color: var(--bright-text);
    border-color: var(--bright-border);
}

.copy-btn:hover {
    border-color: var(--cyber-pink);
    color: var(--cyber-pink);
    background: rgba(255, 0, 110, 0.05);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: scale(0.98);
}

.hidden {
    display: none !important;
}

/* Modern Notification Toast */
.app-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(20, 20, 25, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.app-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bright-mode .app-notification {
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 10, 15, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none; /* Changed from flex to none to hide initially */
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.copy-notification::before {
    content: ''; /* Removed emoji */
    display: none;
}

.copy-notification.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bright-mode .copy-notification {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.page-footer {
    position: relative;
    width: 100%;
    padding: 40px 20px 24px;
    margin-top: 60px;
    text-align: center;
    z-index: 10;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bright-mode .footer-tagline {
    color: var(--bright-text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.bright-mode .footer-links a {
    color: var(--bright-text-secondary);
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-pink);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    font-size: 12px;
    color: var(--dark-text-secondary);
    font-weight: 500;
}

.bright-mode .footer-copyright {
    color: var(--bright-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 12px;
        padding-top: 80px;
    }
    
    .profile-card {
        padding: 24px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        padding: 24px 20px;
        max-height: 90vh;
        min-height: auto;
        border-radius: 20px;
        margin: auto;
    }
    
    .modal-content h2 {
        font-size: 24px;
        padding-right: 30px;
    }
    
    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .modal-large {
        max-width: 100%;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .step-container {
        min-height: auto;
    }
    
    .preset-questions {
        max-height: 300px;
    }
    
    .preset-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .preset-emoji {
        font-size: 20px;
    }
    
    .custom-question textarea {
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .theme-categories {
        max-height: 40vh;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .theme-pack {
        padding: 14px;
    }
    
    .theme-pack-name {
        font-size: 13px;
    }
    
    .color-dot {
        width: 28px;
        height: 28px;
    }
    
    .theme-preview-text {
        font-size: 11px;
        padding: 6px;
    }
    
    .response-type-hint {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .response-card-content {
        padding: 16px;
    }
    
    .response-icon {
        font-size: 32px;
    }
    
    .response-card-content h4 {
        font-size: 16px;
    }
    
    .response-card-content p {
        font-size: 13px;
    }
    
    .success-animation .success-icon {
        font-size: 64px;
    }
    
    .success-animation h2 {
        font-size: 24px;
    }
    
    .rant-preview {
        padding: 20px 16px;
    }
    
    .preview-question {
        font-size: 15px;
    }
    
    .share-section {
        padding: 20px 16px;
    }
    
    .share-section p {
        font-size: 14px;
    }
    
    .share-link {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-link input {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .copy-btn {
        width: 100%;
        padding: 12px 16px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .rant-detail-header {
        padding: 20px 16px;
    }
    
    .rant-detail-header h2 {
        font-size: 20px;
    }
    
    .rant-meta {
        font-size: 12px;
    }
    
    .responses-section h3 {
        font-size: 16px;
    }
    
    .response-card {
        padding: 14px;
    }
    
    .response-type-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .response-text {
        font-size: 14px;
    }
    
    .response-card-footer {
        font-size: 11px;
    }
    
    .detail-question {
        font-size: 17px;
        padding: 16px;
    }
    
    .detail-answer {
        font-size: 15px;
        padding: 16px;
    }
    
    .detail-audio-player {
        padding: 24px 16px;
    }
    
    .audio-player-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .audio-waveform {
        height: 50px;
    }
    
    .response-actions {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "share download"
            "hints hints"
            "delete delete";
        gap: 10px;
    }
    #deleteResponseBtn {
        width: 80%;
    }
    .footer-links {
        gap: 8px 16px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 8px;
        align-items: center;
    }
    
    .modal-content {
        padding: 20px 16px;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .theme-grid {
        gap: 10px;
    }
    
    .preset-questions {
        gap: 10px;
    }
    
    .response-actions {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "share download"
            "hints hints"
            "delete delete";
        gap: 8px;
    }
    #deleteResponseBtn {
        width: 100%;
    }
    .copy-notification {
        bottom: 80px;
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Custom Question & Prompts - Hide Scrollbar */
.custom-question textarea,
.detail-question,
.rant-question {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.custom-question textarea::-webkit-scrollbar,
.detail-question::-webkit-scrollbar,
.rant-question::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

/* Locked Theme Styling */
.locked-theme {
    position: relative;
    opacity: 0.8;
    border-color: #ffd700 !important;
}

.locked-theme .lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.locked-theme.unlocked .lock-overlay {
    display: none;
}

.lock-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.lock-text {
    color: #ffd700;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Modal */
.premium-content {
    text-align: center;
}

.crown-large {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.gold-text {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.premium-features {
    margin: 32px 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
}

.feature-icon {
    font-size: 24px;
}

.feature-text h4 {
    color: #ffd700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 13px;
    color: var(--dark-text-secondary);
    margin: 0;
}

.premium-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

body.bright-mode .price-amount {
    color: #0a0a0f;
}

.price-period {
    color: var(--dark-text-secondary);
    font-size: 16px;
}

body.bright-mode .price-period {
    color: var(--bright-text-secondary);
}

.btn-gold {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.secure-text {
    font-size: 12px;
    color: var(--dark-text-secondary);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Hints Button & Modal */
.btn-hints {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed var(--dark-text-secondary);
    color: var(--dark-text);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hints:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* Delete Response Button */
.btn-delete-response {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete-response:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: #fff;
    background: #ff4444;
}

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

.hint-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.hint-label {
    font-size: 12px;
    color: var(--dark-text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

body.bright-mode .hint-label {
    color: var(--bright-text-secondary);
}

.hint-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
}

body.bright-mode .hint-value {
    color: var(--bright-text);
}

/* ==================== CUSTOM DIALOG SYSTEM ==================== */
.custom-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.custom-dialog-overlay.active {
    display: flex;
}

body.bright-mode .custom-dialog-overlay {
    background: rgba(255, 255, 255, 0.8);
}

.custom-dialog {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

body.bright-mode .custom-dialog {
    background: #ffffff;
    border-color: var(--bright-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--dark-text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

body.bright-mode .dialog-close {
    color: var(--bright-text-secondary);
}

body.bright-mode .dialog-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bright-text);
}

.dialog-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.dialog-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark-text);
}

body.bright-mode .dialog-title {
    color: var(--bright-text);
}

.dialog-message {
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--dark-text-secondary);
    line-height: 1.5;
}

body.bright-mode .dialog-message {
    color: var(--bright-text-secondary);
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dialog-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

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

.dialog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

body.bright-mode .dialog-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bright-text);
    border-color: var(--bright-border);
}

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

body.bright-mode .dialog-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dialog-btn-danger {
    background: linear-gradient(135deg, #ff006e, #ff006e);
    color: white;
}

.dialog-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

/* Welcome Onboarding Dialog */
.welcome-dialog {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 0;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

body.bright-mode .welcome-dialog {
    background: #ffffff;
    border-color: var(--bright-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.welcome-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(114, 9, 183, 0.1));
    border-bottom: 1px solid var(--dark-border);
}

body.bright-mode .welcome-header {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(114, 9, 183, 0.05));
    border-color: var(--bright-border);
}

.welcome-logo {
    font-family: 'Kablammo', cursive;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #a69cff 0%, #80b7ff 40%, #9bd4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

body.bright-mode .welcome-title {
    color: var(--bright-text);
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--dark-text-secondary);
    font-weight: 500;
}

body.bright-mode .welcome-subtitle {
    color: var(--bright-text-secondary);
}

.welcome-content {
    padding: 40px;
    flex: 1;
    overflow-y: auto;
}

.welcome-step {
    animation: fadeInSlide 0.3s ease;
}

.welcome-step.hidden {
    display: none;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

body.bright-mode .feature-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--bright-border);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.2);
    border-color: #ff006e;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

body.bright-mode .feature-box h3 {
    color: var(--bright-text);
}

.feature-box p {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

body.bright-mode .feature-box p {
    color: var(--bright-text-secondary);
}

/* Guide Steps */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

body.bright-mode .guide-step {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--bright-border);
}

.guide-step:hover {
    transform: translateX(8px);
    border-color: #ff006e;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff006e, #7209b7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

body.bright-mode .step-content h3 {
    color: var(--bright-text);
}

.step-content p {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

body.bright-mode .step-content p {
    color: var(--bright-text-secondary);
}

/* Privacy Info */
.privacy-info {
    text-align: center;
}

.privacy-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.privacy-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 32px;
}

body.bright-mode .privacy-info h3 {
    color: var(--bright-text);
}

.privacy-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.privacy-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
}

.point-icon {
    font-size: 24px;
    color: #00ff88;
    flex-shrink: 0;
}

.privacy-point p {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

body.bright-mode .privacy-point p {
    color: var(--bright-text-secondary);
}

.privacy-point strong {
    color: var(--dark-text);
    font-weight: 600;
}

body.bright-mode .privacy-point strong {
    color: var(--bright-text);
}

/* Welcome Footer */
.welcome-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

body.bright-mode .welcome-footer {
    border-color: var(--bright-border);
    background: rgba(0, 0, 0, 0.02);
}

.step-indicators {
    display: flex;
    gap: 12px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.bright-mode .step-dot {
    background: rgba(0, 0, 0, 0.2);
}

.step-dot.active {
    background: linear-gradient(135deg, #ff006e, #7209b7);
    width: 32px;
    border-radius: 6px;
}

.welcome-buttons {
    display: flex;
    gap: 12px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-content {
        padding: 24px;
    }
    
    .welcome-header {
        padding: 32px 24px 24px;
    }
    
    .welcome-footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
    }
    
    .welcome-logo {
        font-size: 36px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
}

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

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

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