/* =================================
   (Only app-specific UI — reset & vars are in core.css)
   ================================= */

/* App Container */
.app-container {
    min-height: 100vh;
    padding-bottom: var(--space-xl);
}

/* Header */
.app-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
}

.logo-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    animation: float 3s ease-in-out infinite;
}

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

.header-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Main Content Wrapper */
.app-main {
    padding: 0 var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

/* =================================
   GALLERY SECTION (Featured & Latest)
   ================================= */

.gallery-section {
    margin-bottom: var(--space-xl);
    animation: slideUp 0.5s ease;
}

.gallery-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: 4px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.gallery-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-tab svg {
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.gallery-tab.active {
    background: var(--color-primary);
    color: white;
}

.gallery-tab.active svg {
    opacity: 1;
}

.gallery-tab:not(.active):hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.gallery-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.gallery-content.active {
    display: block;
}

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

/* Horizontal scroll for cards */
.cards-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: 4px;
    margin: 0 calc(var(--space-md) * -1);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Card Thumbnails */
.card-thumb {
    position: relative;
    min-width: 140px;
    width: 170px;
    height: 170px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.card-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-thumb:hover .card-thumb-overlay {
    opacity: 1;
}

.card-thumb-info {
    color: white;
}

.card-thumb-quote {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.card-thumb-author {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(251, 191, 36, 0.6);
    }
}

.featured-thumb {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Empty gallery state */
.gallery-empty {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--color-text-muted);
}

.gallery-empty svg {
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.gallery-empty p {
    margin: 0;
    font-size: 14px;
}

/* =================================
   CARD CREATE FORM
   ================================= */

.card-form {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
    max-width: 480px;
    margin: 0 auto;
}

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

/* Form groups */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

.label-counter {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.label-badge {
    font-size: 11px;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Input Wrapper + Glow */
.input-wrapper {
    position: relative;
}

.input-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
}

.input-wrapper:focus-within .input-glow {
    opacity: 0.6;
}

/* Textarea / input */
.form-textarea,
.form-input {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-textarea:focus,
.form-input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.form-textarea::placeholder,
.form-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Rate Limit Warning Banner (Create Page) */
.rate-limit-warning {
    max-width: 480px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.1),
        rgba(239, 68, 68, 0.05)
    );
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
    display: flex;
    gap: var(--space-md);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.rate-limit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.rate-limit-content {
    flex: 1;
}

.rate-limit-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.rate-limit-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.btn-rate-limit-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-rate-limit-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.upload-area.drag-over {
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-content {
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.upload-icon {
    color: var(--color-text-secondary);
    transition: transform var(--transition-base);
}

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

.upload-text {
    text-align: center;
}

.upload-text strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 4px;
}

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

.upload-preview {
    position: relative;
    padding: var(--space-md);
}

.upload-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.preview-remove {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preview-remove:hover {
    background: var(--color-danger);
    transform: scale(1.1);
}

/* Create Button */
.btn-create {
    width: 100%;
    border: none;
    border-radius: var(--radius-full);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-create::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-create:hover::before {
    transform: translateX(100%);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

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

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

.btn-create.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Privacy Options */
.privacy-toggle {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.privacy-options {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.privacy-option {
    cursor: pointer;
    display: block;
}

.privacy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.privacy-option-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.privacy-option input[type="radio"]:checked + .privacy-option-card {
    background: var(--color-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.privacy-option:hover .privacy-option-card {
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.privacy-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.privacy-option input[type="radio"]:checked
    + .privacy-option-card
    .privacy-option-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: white;
}

.privacy-option-content {
    flex: 1;
}

.privacy-option-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.privacy-option-content span {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
}

.privacy-option-check {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.privacy-option input[type="radio"]:checked
    + .privacy-option-card
    .privacy-option-check {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Privacy note */
.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin: 0;
}

.privacy-note svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-note span {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* =================================
   FEATURE ICONS
   ================================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: var(--space-xs);
}

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

/* =================================
   CARD DETAIL PAGE - KART DETAY SAYFASI
   ================================= */

.card-page {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.card-header h1 {
    font-size: 18px;
    font-weight: 700;
}

/* Back button (card page header) */
.back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.header-spacer {
    width: 40px;
}

.card-main {
    flex: 1;
    padding: var(--space-lg) var(--space-md);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Card container */
.card-container {
    margin-bottom: var(--space-lg);
    animation: cardAppear 0.6s ease;
}

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

.card-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.card-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Shimmer overlay */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

/* Action buttons (download / share) */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.action-btn {
    padding: 14px 20px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.action-btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.action-btn-secondary:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-primary);
}

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

/* “Yeni kart oluştur” butonu - card page */
.btn-new-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 20px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-base);
    margin-bottom: var(--space-xl);
}

.btn-new-card:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ===== kart detay sayfasındaki delete butonu ve aksiyonları ====== */
/* Delete Button */
.btn-delete-card {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-delete-card:active {
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

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

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
/* ======== Kart detay sayfasındaki delete butonu ve aksiyonları son ======== */

/* Quote Infos */
.quote-info {
    padding: var(--space-lg);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.quote-author {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: right;
    font-weight: 500;
}

/* Kullanıcı profili ve diğer bilgileri */
.creator-profile {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.creator-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(16,185,129,0.3);
    flex-shrink: 0;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-info strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.creator-info span {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: block;
}

.creator-verified {
    color: #22c55e;
    font-size: 14px;
    margin-left: 4px;
}


/* Success Overlay (card created) */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.success-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.success-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.success-content {
    text-align: center;
    padding: var(--space-xl);
    animation: successPop 0.5s ease;
}

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

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
    color: var(--color-success);
    animation: pulse 1s ease infinite;
}

.success-content h2 {
    font-size: 24px;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.success-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* Toast (Copy link, etc.) */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-base);
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.toast-content svg {
    color: var(--color-success);
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 360px) {
    .app-header {
        padding: var(--space-md) var(--space-sm);
    }

    .app-main {
        padding: 0 var(--space-sm);
    }

    .card-form {
        padding: var(--space-md);
    }

    .features {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* =================================
   THEME TRANSITIONS & OVERRIDES
   ================================= */

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode tweaks */
html[data-theme="light"] .logo-badge {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .card-form {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-create {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .btn-create:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

html[data-theme="light"] .action-btn-primary {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .action-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

html[data-theme="light"] .form-textarea:focus,
html[data-theme="light"] .form-input:focus {
    background: var(--color-bg-elevated);
}

html[data-theme="light"] .success-overlay {
    background: rgba(248, 250, 252, 0.95);
}

/* Dark mode tweaks */
html[data-theme="dark"] .card-form {
    background: var(--color-bg-elevated);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .form-input {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html[data-theme="dark"] .form-textarea:focus,
html[data-theme="dark"] .form-input:focus {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

html[data-theme="dark"] .upload-area {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html[data-theme="dark"] .upload-area:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

html[data-theme="dark"] .feature-card {
    background: var(--color-bg-elevated);
    border-color: var(--color-border);
}
