/* ============================================
   SNAP & EDIT AI - PREMIUM DASHBOARD + AUTH
   ============================================ */

/* ============================================
   MODAL BASE STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.credits-modal-content {
    max-width: 680px;
}

.credits-modal-content h2 {
    text-align: center;
    margin-bottom: 0.25rem;
}

.credits-modal-content .subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Buy Credits Header Button */
.buy-credits-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient);
    color: #020617;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-credits-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

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

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

:root {
    --bg-color: #020617;
    --card-bg: rgba(15, 23, 42, 0.7);
    --header-bg: rgba(2, 6, 23, 0.8);
    --primary: #22C55E;
    --primary-hover: #16A34A;
    --primary-glow: rgba(34, 197, 94, 0.4);
    --danger: #EF4444;
    --warning: #F59E0B;
    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --gradient: linear-gradient(135deg, #22C55E, #10B981, #3B82F6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-1: rgba(34, 197, 94, 0.15);
    --glow-2: rgba(59, 130, 246, 0.1);
    --font-main: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   FLOATING GLOW BACKGROUND
   ============================================ */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 10%, var(--glow-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, var(--glow-2) 0%, transparent 40%);
    filter: blur(80px);
}

/* ============================================
   AUTH SECTION (Login / Register / Landing)
   ============================================ */
.auth-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    width: 100%;
}

@media (min-width: 900px) {
    .auth-section {
        flex-direction: row;
        gap: 4rem;
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* MARKETING SIDE STYLES */
.marketing-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.marketing-badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketing-title {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 800;
}

@media (min-width: 900px) {
    .marketing-title {
        font-size: 3rem;
    }
}

.marketing-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 95%;
}

.marketing-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.auth-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-logo {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.auth-tagline {
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-bonus {
    text-align: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.auth-footer a,
.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover,
.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.forgot-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ============================================
   HEADER
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.badge {
    background: var(--primary);
    color: #020617;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 900;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.credits-badge:hover {
    background: rgba(34, 197, 94, 0.2);
}

.credits-badge.low {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.credits-badge.empty {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.photog-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ============================================
   LAYOUT
   ============================================ */
main {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    padding-left: 0.25rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ============================================
   NO CREDITS WARNING
   ============================================ */
.no-credits-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #FCA5A5;
    font-size: 0.875rem;
}

.no-credits-warning a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================
   PRESET SELECTOR
   ============================================ */
.preset-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-select {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.preset-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.preset-select option {
    background: #0f172a;
    color: white;
    padding: 0.5rem;
}

.preset-select optgroup {
    background: #0f172a;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.preset-description {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    line-height: 1.4;
}

/* ============================================
   UPLOAD ZONE
   ============================================ */
.upload-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.03);
    transform: translateY(-2px);
}

.upload-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   PREVIEW GRID
   ============================================ */
.preview-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    width: 100%;
    padding: 1rem;
    z-index: 10;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.3s ease;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-button {
    position: relative;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    color: #020617;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.cta-button:active:not(:disabled) {
    transform: translateY(0);
}

.cta-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.cta-button:disabled .btn-shimmer {
    display: none;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shimmer 2s infinite;
}

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

/* ============================================
   ACTIVITY SECTION
   ============================================ */
.activity-section {
    padding: 0.5rem;
}

.activity-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.4s ease forwards;
}

.activity-item .activity-info p:first-child {
    font-weight: 600;
    font-size: 0.875rem;
}

.activity-item .activity-info p:last-child {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.activity-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-status.delivered {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.activity-status.processing {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    animation: pulse 2s infinite;
}

.activity-status.failed {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.activity-status.pending {
    color: var(--text-dim);
    background: rgba(148, 163, 184, 0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
}

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

.modal-content {
    text-align: center;
    width: 90%;
    max-width: 450px;
}

.ai-loader {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 0.6s infinite alternate;
}

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

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

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.3;
    }

    to {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-dim);
    font-size: 0.75rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* ============================================
   LOADING SPINNER (for buttons)
   ============================================ */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(2, 6, 23, 0.3);
    border-top: 3px solid #020617;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .app-container {
        padding: 0 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .glass-card {
        padding: 1.75rem;
    }

    header {
        padding: 1rem 0;
    }

    .header-right {
        gap: 0.5rem;
    }

    .credits-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .photog-info {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .upload-zone {
        min-height: 160px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .photog-info {
        display: none;
    }
}

/* ============================================
   BUY CREDITS BUTTON
   ============================================ */
.buy-credits-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient);
    border: none;
    color: #020617;
    padding: 0.45rem 0.85rem;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.buy-credits-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ============================================
   CREDITS MODAL
   ============================================ */
.credits-modal-content {
    max-width: 700px;
    width: 95%;
    position: relative;
    padding: 2.5rem;
}

.credits-modal-content h2 {
    text-align: center;
    margin-bottom: 0.25rem;
}

.credits-modal-content .subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

/* ============================================
   PRICING GRID
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pricing-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #020617;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.pricing-credits {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.pricing-per {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.pricing-save {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.pricing-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 0.6rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-btn:hover {
    background: var(--primary);
    color: #020617;
    border-color: var(--primary);
}

.pricing-card.popular .pricing-btn {
    background: var(--gradient);
    color: #020617;
    border: none;
    font-weight: 700;
}

.pricing-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   PAYMENT SUCCESS TOAST
   ============================================ */
.payment-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive pricing */
@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .credits-modal-content {
        padding: 1.5rem;
    }
}

/* ============================================
   UPLOAD BUTTONS
   ============================================ */
.upload-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.upload-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

.add-more-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-wrap: wrap;
}

.add-more-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.photo-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast-info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast-warning {
    background: rgba(245, 158, 11, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

@media (max-width: 600px) {
    .toast-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
    }
}

/* Tutorial Box Styles */
.tutorial-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeInUp 0.4s ease;
}

.tutorial-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tutorial-content h3 {
    color: #60A5FA;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.tutorial-content ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tutorial-content li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.tutorial-content li::before {
    content: '•';
    color: #60A5FA;
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1.2rem;
}

.tutorial-content li strong {
    color: #93C5FD;
}

/* Disclaimer Box Styles */
.disclaimer-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(239, 68, 68, 0.05);
    /* Faint red tint */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

.disclaimer-box strong {
    color: #F87171;
    /* Warning red */
}