/**
 * Multi Reactions Bot WebApp - Ultra Premium Mobile Styles
 */

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

:root {
    --bg-dark: #09090b;
    --bg-main: #0f0f12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(20, 20, 25, 0.8);

    /* Premium Purple Theme (Default) */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --secondary-gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --accent-gradient: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);

    --success: #8b5cf6;
    --success-hover: #7c3aed;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.5);
    --nav-height: 80px;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Pro Theme (Gold/Premium) - Overrides */
body.status-pro {
    --primary: #eab308;
    --primary-gradient: linear-gradient(135deg, #eab308 0%, #8b5cf6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(217, 70, 239, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom));
    overflow-x: hidden;
    transition: --primary 0.5s, --primary-gradient 0.5s;
}

body.status-pro {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(234, 179, 8, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

/* Utilities */
.container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

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

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

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Enhanced Branding */
.branding-section {
    text-align: center;
    margin: 10px 0 25px;
    padding: 25px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.branding-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 80%;
    margin: 0 auto 20px;
}

.brand-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
}

.brand-icon {
    animation: float 3s ease-in-out infinite;
}

.brand-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.brand-icon:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

/* Components */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Glass Shine Effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.card:active::before {
    left: 100%;
    transition: 0s;
}

.btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

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

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

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: rgba(139, 92, 246, 0.15);
    color: var(--success);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.25);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.25);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
}

.btn-recharge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    margin-top: 15px;
}

.btn-recharge:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* Upgrade Button */
.btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.btn-upgrade:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Header Section */
.hero {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Changed to space-between */
    gap: 15px;
}

.hero-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--primary-gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    position: relative;
}

.hero-avatar img,
.hero-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.status-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-tag.free {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.status-tag.pro {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

/* Balance Card */
.credit-card {
    background: linear-gradient(135deg, #1e1e24 0%, #111115 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.credit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

/* Project List */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

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

.project-title {
    font-weight: 600;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-emoji-preview {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.emoji-more {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.status-badge {
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.status-active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--success);
    border: 1px solid rgba(139, 92, 246, 0.3);
}



.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.p-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-val {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.p-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Emoji mode tag */
.emoji-mode-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Project details grid */
.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.pd-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}

.pd-val {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.project-actions .btn {
    font-size: 14px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.optional-tag {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 400;
}

.input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 16px;
    color: white;
    font-size: 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.input.success {
    border-color: var(--primary);
}

.input-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.input-hint .success {
    color: var(--primary);
}

.input-hint .error {
    color: var(--danger);
}

/* Emoji Selector */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.emoji-option {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.emoji-option.selected {
    background: rgba(var(--primary), 0.2);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Full Emoji List Modal */
.full-emoji-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

/* Bottom Navigation */
/* Bottom Navigation */
.nav-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 460px;
    height: auto;
    min-height: 70px;
    background: rgba(30, 27, 75, 0.4);
    /* Deep Indigo/Purple */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 600;
    width: 70px;
    height: 100%;
    position: relative;
    transition: color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 10px 0;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    fill: currentColor;
    opacity: 0.6;
}

.nav-item:hover:not(.active) .nav-icon {
    opacity: 0.8;
}

.nav-item.active {
    color: #8b5cf6;
    /* Light Purple */
}

.nav-item.active .nav-icon {
    transform: translateY(-4px) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.5));
}



/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(180deg, #1f1f24 0%, #18181b 100%);
    width: 100%;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 24px 20px calc(20px + var(--safe-area-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Modal Handle */
.modal-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 10px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Sticky Modal Footer */
.modal-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, #18181b 20%);
    padding: 20px 0 0;
    margin-top: 20px;
    z-index: 10;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Range Slider */
.range-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

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

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--primary), 0.5);
}

.range-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Selected Emoji Item in Modal */
.selected-emoji-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

/* Centered Home Layout */
.home-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}




/* Profile Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Sticky Add Project Button */
.sticky-add-btn-container {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 90;
    pointer-events: none;
    /* Allow clicking through container */
}

.sticky-add-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(var(--primary), 0.4);
    pointer-events: auto;
    /* Enable clicking on button */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ============================================
   SKELETON LOADING STATES
   ============================================ */

.skeleton-container {
    padding: 10px 0;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin: 0 auto;
}

.skeleton-text {
    height: 20px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-badge {
    width: 100px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-card {
    border-radius: 20px;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

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

/* ============================================
   REDESIGNED HOME PAGE — Premium Bot Branding
   ============================================ */

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative;
    text-align: center;
    padding: 36px 20px 28px;
    margin: -15px -15px 18px;
    border-radius: 0 0 32px 32px;
    background: linear-gradient(140deg, #6d28d9 0%, #a21caf 35%, #db2777 65%, #ea580c 100%);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.25);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(234, 88, 12, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero-reactions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-emoji {
    font-size: 20px;
    display: inline-block;
    animation: heroFloat 3.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.hero-emoji.e1 {
    animation-delay: 0s;
}

.hero-emoji.e2 {
    animation-delay: 0.5s;
}

.hero-emoji.e3 {
    animation-delay: 1.0s;
}

.hero-emoji.e4 {
    animation-delay: 1.5s;
}

.hero-emoji.e5 {
    animation-delay: 2.0s;
}

@keyframes heroFloat {

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

    50% {
        transform: translateY(-7px) scale(1.15);
    }
}

.hero-bot-icon {
    font-size: 44px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    animation: heroPulse 3s ease-in-out infinite;
}

@keyframes heroPulse {

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

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

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 240px;
    margin: 0 auto 16px;
    line-height: 1.5;
    letter-spacing: 0.1px;
}

.hero-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-plan-badge.pro {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.hero-plan-badge.free {
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-days {
    opacity: 0.75;
    font-weight: 500;
    font-size: 11px;
}

/* ---- Balance Card ---- */
.home-balance-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 22px 24px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.home-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.home-balance-card::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hbc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hbc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.hbc-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    letter-spacing: 0.5px;
}

.hbc-chip.chip-pro {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.25);
}

.hbc-amount {
    font-size: 42px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hbc-unit {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* ---- Limits Bar ---- */
.home-limits-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px 12px;
    margin-bottom: 18px;
}

.limit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}

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

.limit-val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.limit-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.limit-sep {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

/* ---- Quick Actions ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 20px;
}

.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quick-action:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.quick-action:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.08);
}

.quick-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
    transition: transform var(--transition-fast);
}

.quick-action:hover .quick-icon {
    transform: scale(1.12);
}

.quick-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.quick-action:hover .quick-label {
    color: white;
}

/* ---- Legacy home classes (kept for profile page) ---- */
.home-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.home-avatar-large img,
.home-avatar-large .avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: var(--primary-gradient);
}

.home-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

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

.home-info {
    flex: 1;
}

/* Stats card (profile page) */
.home-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.home-stat {
    text-align: center;
}

.home-stat-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.home-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Credit card (kept for other usages) */
.credit-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(217, 70, 239, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.credit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.credit-card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.credit-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}

.credit-icon {
    font-size: 22px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.credit-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.credit-unit {
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 2px;
}

.credit-expiry {
    font-size: 12px;
    color: var(--warning);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   PROJECT CARDS IMPROVEMENTS
   ============================================ */

.project-count {
    font-size: 14px;
    opacity: 0.5;
    font-weight: 400;
}

.empty-state {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

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

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   INSTANT REACT IMPROVEMENTS
   ============================================ */

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.input-hint .success {
    color: var(--primary);
}

.input-hint .error {
    color: var(--danger);
}

.selected-emojis-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 12px;
}

.emoji-chip-count {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.emoji-chip-small {
    display: inline-block;
    font-size: 18px;
    padding: 4px;
}

.plan-limit-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.cost-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.cost-row.total {
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.submit-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ============================================
   INSTANT REACT - REDESIGNED
   ============================================ */

.instant-header {
    text-align: center;
    margin-bottom: 24px;
}

.instant-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.instant-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.instant-card {
    margin-bottom: 16px;
}

.emoji-select-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

.emoji-select-icon {
    font-size: 18px;
}

.emoji-count-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.selected-emojis-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.emoji-chip-instant {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 8px 14px;
}

.emoji-chip-instant .emoji-icon {
    font-size: 18px;
}

.emoji-chip-instant .emoji-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.optional-tag {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
}

.instant-summary-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.summary-value {
    font-weight: 600;
    color: var(--text-main);
}

.summary-row.total .summary-value {
    color: var(--primary);
    font-size: 18px;
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.summary-balance {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
}

.summary-balance.sufficient {
    color: var(--success);
}

.summary-balance.insufficient {
    color: var(--danger);
}

.insufficient-warning {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.instant-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

.instant-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 18px;
}

/* Select Dropdown */
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ============================================
   PROFILE PAGE IMPROVEMENTS
   ============================================ */

.profile-card {
    text-align: center;
    padding-top: 30px;
}

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

.profile-info {
    margin-top: 15px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-badge-large {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.plan-badge-large.silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.plan-badge-large.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.plan-badge-large.diamond {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
}

.plan-badge-large.unlimited {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.plan-days {
    opacity: 0.8;
    font-weight: 400;
}

.card-title {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Settings Toggle */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.setting-label {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Referral Section */
.referral-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.referral-stat {
    text-align: center;
}

.referral-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.referral-stat-value.success {
    color: var(--success);
}

.referral-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.referral-hint {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-link-box .input {
    flex: 1;
    text-align: center;
    font-family: monospace;
    font-size: 12px;
}

.btn-icon {
    width: auto;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

/* ============================================
   MODAL IMPROVEMENTS
   ============================================ */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.modal-footer .btn {
    flex: 1;
}

/* Project Edit Modal */
.project-edit-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
}

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

.channel-name {
    font-weight: 600;
    font-size: 16px;
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-input-group .range-slider {
    flex: 1;
}

.range-input-group .range-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

/* Emoji Modal Improvements */
.selected-section {
    margin-bottom: 20px;
}

.selected-emoji-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.selected-emoji-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.emoji-large {
    font-size: 24px;
}

.btn-remove {
    margin-left: auto;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.empty-hint {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

.full-emoji-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 12px;
}

.emoji-option {
    font-size: 20px;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.emoji-option.selected {
    background: var(--primary);
    transform: scale(1.1);
}

/* ============================================
   PROJECT EDIT WIZARD
   ============================================ */

.wizard-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.wizard-body {
    min-height: 250px;
}

.wizard-step {
    animation: fadeIn 0.3s ease;
}

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

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

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-selection {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-style: italic;
}

/* Distribution Options */
.distribution-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.distribution-option:hover {
    border-color: var(--primary);
}

.distribution-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.dist-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dist-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Weight Configuration */
.weight-config {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
}

.weight-config h5 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.weight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    padding: 8px 12px;
    border-radius: 8px;
}

.weight-emoji {
    font-size: 20px;
}

.weight-input {
    width: 50px;
    padding: 6px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-main);
    text-align: center;
    font-size: 14px;
}

/* Reaction Count Display */
.reaction-count-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    margin-bottom: 20px;
}

.count-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.count-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Delay Options */
.delay-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.delay-option {
    padding: 14px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.delay-option:hover {
    border-color: var(--primary);
}

.delay-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.upgrade-notice {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
}

.upgrade-notice span {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.upgrade-notice p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Review Summary */
.review-summary {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    color: var(--text-muted);
    font-size: 14px;
}

.review-value {
    font-weight: 600;
    font-size: 14px;
}

/* Private Channel Notice */
.private-badge {
    background: var(--warning);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.private-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: var(--warning);
}

.notice-icon {
    font-size: 16px;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    gap: 12px;
}

.wizard-footer .btn {
    flex: 1;
    padding: 14px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    z-index: 3000;
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: var(--shadow-lg);
    max-width: calc(100% - 40px);
    text-align: center;
}

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

.toast-success {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.15);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.15);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.15);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: white;
}

/* ============================================
   FOCUS VISIBLE STYLING
   ============================================ */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}