/* Global Styles - Ultra Minimal */
:root {
    --bg-color: #fdfbf7;
    /* Ivory */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #000000;
}

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

html,
body {
    width: 100%;
    /* Allow content to determine height for native scroll */
    min-height: 100%;
    margin: 0;
    padding: 0;
    /* Removed overflow:hidden and position:fixed to restore native rubber-band scroll */
}

/* Scroll Snap applied to HTML for window scroll */
html {
    scroll-snap-type: y mandatory;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 1.5s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.main-container {
    width: 100%;
    /* Removed fixed height and overflow to let body scroll */
    /* scroll-snap-type moved to html */
    position: relative;
    /* Changed from absolute */
}

section {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 80px 20px 40px;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

/* Prevent mobile UI flash on desktop - ensure proper initial state */
html {
    visibility: visible;
}

/* Mobile: use mandatory scroll snap */
@media (max-width: 768px) {
    section {
        padding: 60px 20px 40px;
    }
}

/* Navigation Bar (Top Right) */
/* Header Navigation */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.1)) blur(0.3px);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #000;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* User Section (Logged In) */
.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sign In Container (Logged Out) Native Style */
.signin-container {
    width: 130px;
    /* Desktop width */
    height: 32px;
    /* Reduced to match data-height */
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Slower transition for floating effect */
    border-radius: 100px;
    /* Match capsule shape */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Very subtle grey border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05),
        /* Diffuse glow */
        0 2px 4px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .signin-container {
        width: 32px;
        /* Square for Logo-only on mobile */
        height: 32px;
        border-radius: 8px;
        /* Slightly rounded square for logo-only */
    }
}

.signin-container:hover {
    opacity: 1;
    transform: translateY(-4px);
    /* Float a bit higher */
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Let data attributes drive the internal rendering */
#appleid-signin-button {
    width: 100% !important;
    height: 100% !important;
}

/* Force Apple Sign In button to fit container */
#appleid-signin-button {
    width: 100% !important;
    height: 100% !important;
    border-radius: 100px !important;
}

#appleid-signin-button>div {
    border-radius: 100px !important;
}

/* Hero Section (Center Branding) */
.hero-section {
    min-height: 100vh;
    animation: fadeIn 1.2s ease-out;
}

.intro-section {
    background: var(--bg-color);
}

/* Reveal Animations (Apple Style) */
.reveal-section .intro-content>* {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-section.in-view .intro-content>* {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delays for Children */
.reveal-section.in-view .intro-content>h2 {
    transition-delay: 0.1s;
}

.reveal-section.in-view .intro-content>p {
    transition-delay: 0.25s;
}

.reveal-section.in-view .intro-content .intro-visual {
    transition-delay: 0.4s;
}

/* Scale Animation for the Visual */
.reveal-section .intro-visual {
    transform: translateY(60px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-section.in-view .intro-visual {
    transform: translateY(0) scale(1);
}

.emotional-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.emotional-container.reverse-layout {
    flex-direction: row-reverse;
}

.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.intro-section h2 {
    font-family: 'Playfair Display', serif;
    /* Use serif for emotional impact */
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.intro-section p {
    font-family: 'Outfit', sans-serif;
    /* Changed to Outfit */
    font-size: 20px;
    color: #838383;
    /* Matched with hero subtitle */
    /* Slightly darker for better readability */
    max-width: 580px;
    /* Constrain width for better reading experience */
    margin-bottom: 0;
    line-height: 1.6;
    /* More breathing room */
    font-weight: 600;
    /* Matched closer to subtitle (Bold) but optimized for body */
}

/* Responsive Text Visibility */
.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }
}

.emotional-visual {
    flex: 1.2;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    /* aspect-ratio removed to allow image natural ratio */
}

.emotional-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.reveal-section.in-view .emotional-visual img {
    transform: scale(1.03);
    /* Subtle zoom in effect on reveal */
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.intro-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.intro-visual {
    width: 100%;
    height: 320px;
    background: #f5f5f7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {

    .emotional-container,
    .emotional-container.reverse-layout {
        flex-direction: column;
        gap: 40px;
    }

    .intro-content {
        align-items: center;
        text-align: center;
    }

    .intro-section {
        /* Keep scroll snap active */
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 20px;
    }

    /* Scale down content for smaller screens */
    .intro-section h2 {
        font-size: 36px;
    }

    .intro-section p {
        font-size: 16px;
    }

    .emotional-visual {
        max-width: 100%;
    }
}

.intro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sign In Container (Logged Out) Native Style */
.signin-container {
    width: 130px;
    height: 32px;
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    /* Added pointer cursor */
}

/* Ensure the native button also shows pointer */
#appleid-signin-button,
#appleid-signin-button * {
    cursor: pointer !important;
}

.signin-container:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .signin-container {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
}

/* Hero section adjustments */
.hero-section {
    min-height: 100vh;
    /* Ensure full viewport height */
    height: 100dvh;
    /* Dynamic viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Reverted to center for stability */
    align-items: center;
    padding: 0 20px 5vh 20px;
    /* Added bottom padding for optical centering (slightly higher) */
    box-sizing: border-box;
    padding-top: 0;
    /* Clear previous forced padding */
}

.intro-content {
    /* Reset margins that might interfere with flex centering */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-logo-center {
    width: 420px;
    max-width: 80vw;
    /* Responsive width */
    height: auto;
    margin-top: 50px;
    /* Shift logo slightly down */
    margin-bottom: 20px;
    /* Further reduced from 30px to move headline higher */
    display: block;
    filter: drop-shadow(0 0 8px rgba(79, 79, 79, 0.15)) blur(3.5px);
    /* Restored blur */
    padding: 30px;
    /* Increased safety padding */
    /* will-change and backface-visibility removed to prevent filter clipping */
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    /* Unified with sections 2 & 3 */
    font-size: 50px;
    font-weight: 700;
    line-height: 1.1;
    color: #1d1d1f;
    margin-bottom: 6vh;
    /* Increased from 2vh to keep App Store badge in place */
    /* Relative spacing */
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    /* Changed to Outfit for better pairing */
    font-size: 26px;
    /* Slightly larger */
    color: #838383;
    /* Refined grayish color */
    font-weight: 700;
    /* Extra bold */
    letter-spacing: -0.01em;
    max-width: 600px;
    line-height: 1.4;
    margin-bottom: 4vh;
    /* Relative spacing */
}

/* Notebook / Small Desktop Optimization Removed to maintain consistent size */

.hero-actions {
    margin-top: 100px;
    /* Increased by 10px to lower the badge */
}

.app-store-badge {
    height: 54px;
    /* Slightly larger */
    width: auto;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.hero-upload-btn {
    padding: 16px 48px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Header - LoveFrom Style */
.intro-upload-btn {
    margin-top: 32px;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.intro-upload-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #333;
    /* Slightly lighter on hover */
}

.header {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 40px;
}

.logo h1 {
    font-family: "Times New Roman", Times, serif;
    /* Classical Serif */
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.02em;
    letter-spacing: -0.02em;
    color: #000;
    margin-bottom: 12px;
}

.subtitle {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-name:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

/* Buttons - Minimal */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #86868b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-secondary:hover {
    color: #1d1d1f;
    /* Darker grey/black on hover instead of white */
    text-decoration: none;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* Hide original auth card styles */
.auth-section {
    display: none !important;
}

.auth-card h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #000;
}

.auth-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Upload Layout - Neutral (Reverted) */
.upload-section {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.file-drop-zone {
    border: 1px dashed #d2d2d7;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: border-color 0.2s;
    background: transparent;
}

.file-drop-zone:hover {
    border-color: #000;
}

.upload-icon-section h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #000;
}

.upload-icon-section .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.info-card {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}

.info-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.metadata-form {
    margin-top: 40px;
}

.metadata-form h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #000;
}

.type-btn,
.perspective-btn {
    flex: 1;
    padding: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}

.type-btn:hover,
.perspective-btn:hover {
    border-color: #86868b;
    color: #000;
}

.type-btn.selected,
.perspective-btn.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

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

.form-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #e5e5ea;
    background: transparent;
    color: #000;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #000;
}

.btn-upload {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 32px;
}

.btn-upload:disabled {
    background: #f5f5f7 !important;
    color: #d2d2d7 !important;
}

.btn-upload svg {
    display: none;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
}

.preview-thumbnail {
    display: none;
    /* Hide visual thumbnail, keep it minimal text */
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

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

.btn-icon {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Progress */
.progress-bar {
    height: 2px;
    background: #efeff4;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s;
}

/* My Videos List */
.my-videos {
    margin-top: 40px;
    padding-top: 40px;
}

/* Profile Header CSS */
.profile-header-container {
    padding: 20px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.profile-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    /* Improved shadow */
}

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

.profile-details h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1d1d1f;
}

.profile-details p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 12px;
    /* Increased gap */
    margin-top: 4px;
    /* Reduced margin to move buttons up */
}

.btn-edit-profile,
.btn-primary-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    /* Fixed width for equality */
    height: 40px;
    /* Fixed height */
    padding: 0 20px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: -0.3px;
}

.btn-edit-profile {
    background: #ffffff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-edit-profile:hover {
    background: #f5f5f7;
    border-color: #c7c7cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary-action {
    background: #1d1d1f;
    color: #ffffff;
    border: 1px solid #1d1d1f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary-action:hover {
    background: #333336;
    border-color: #333336;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* My Videos Section */
.my-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Desktop default: 3 columns */
    gap: 24px;
    /* Grid view */
}

.video-card {
    position: relative;
    /* For absolute positioning of delete button */
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    /* Prevent grid blowout from long content */
    /* Ensure card fills grid cell equally */
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: visible;
    /* Allow button to show outside */
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Thumbnail Loading State */
.thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: skeleton-sweep 1.5s infinite;
}

@keyframes skeleton-sweep {
    100% {
        left: 100%;
    }
}

.video-card .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-thumbnail.loaded {
    opacity: 1;
}

/* Immersive Video Curved Shape */
.video-card.immersive .thumbnail-container {
    border-radius: 0;
    -webkit-clip-path: url(#immersive-clip-path);
    clip-path: url(#immersive-clip-path);
}

.video-info {
    padding: 12px 4px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-stats {
    font-size: 13px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-card:hover .video-actions {
    opacity: 1;
}

.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 59, 48, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.delete-btn:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.delete-btn svg {
    width: 14px;
    height: 14px;
}

/* Upload Section Toggle */
/* Upload Section (Now inside Modal) */
.upload-section {
    margin: 0;
    max-width: 100%;
    border-bottom: none;
    /* Removed divider as requested */
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }

    /* Header adjustments */
    .app-header {
        padding: 0 20px;
        height: 60px;
    }

    @media (max-width: 768px) {
        .hero-section {
            margin-top: 60px;
            min-height: auto;
            padding-bottom: 60px;
        }

        .hero-headline {
            font-size: 42px;
            /* Responsive headline */
        }

        .intro-section p {
            font-size: 18px;
            max-width: 100%;
            margin: 0 auto;
        }
    }

    .brand-name {
        font-size: 20px;
    }

    .upload-video-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Hero section */
    .hero-logo-center {
        width: 240px;
        margin-bottom: 40px;
    }

    .hero-headline {
        font-size: 36px;
        margin-bottom: 48px;
    }

    .app-store-badge {
        height: 40px;
    }

    /* Intro sections */
    .intro-section h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .intro-section p {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .emotional-visual {
        border-radius: 16px;
    }

    /* Mobile: Single column grid */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Profile Adjustments */
    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .btn-edit-profile,
    .btn-primary-action {
        width: 150px;
        height: 36px;
        font-size: 13px;
    }

    /* Pull profile section down by 20px as requested */
    #app-section {
        padding-top: 80px !important;
    }

    .profile-header-container {
        padding-top: 0 !important;
        padding-bottom: 40px !important;
        /* Increased margin below buttons */
    }

    .profile-info-card {
        gap: 12px !important;
    }

    .profile-details h2 {
        font-size: 22px;
        margin-bottom: 2px;
    }

    /* Header Nav Text Matching (Aris & Sign out) - Enforce exact match */
    .app-header .user-name,
    .app-header .btn-secondary {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #86868b !important;
        line-height: 1.2 !important;
    }

    .app-header .user-name {
        margin-right: 4px;
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* User Profile Icon */
.user-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #1d1d1f;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.05);
}

.user-profile-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* App Section - Full Page View */
#app-section {
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    /* Space for fixed header */
    padding-bottom: 60px;
    box-sizing: border-box;
    /* JS sets display: flex */
    justify-content: center;
}

/* User Profile Icon */
.user-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #1d1d1f;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.05);
}

.user-profile-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Sign in with Apple Button Customization */
div[data-type="sign-in"] {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
}

div[data-type="sign-in"]:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px);
}

/* ==================== Feature: Premium Hosting ==================== */

.hosting-actions {
    padding: 0 12px 14px 12px;
}

.btn-copy-url {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Locked State (Initial) */
.btn-copy-url.locked {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #e5e5ea;
}

.btn-copy-url.locked:hover {
    background: #ebebeb;
    border-color: #d2d2d7;
}

/* Unlocked State (Premium) */
.btn-copy-url.unlocked {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.btn-copy-url.unlocked:hover {
    background: rgba(0, 122, 255, 0.15);
}

/* Premium Modal specific styles */
.premium-modal {
    max-width: 480px;
    text-align: center;
}

.premium-body {
    padding: 10px 20px 30px;
}

.premium-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.premium-title {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 8px;
}

.premium-price {
    font-size: 42px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -1px;
}

.premium-price .period {
    font-size: 16px;
    color: #86868b;
    font-weight: 500;
    vertical-align: middle;
    letter-spacing: 0;
}

.premium-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    background: #fbfbfd;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}

.btn-upgrade-now {
    width: 100%;
    background: #007AFF;
    color: white;
    padding: 18px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-upgrade-now:hover {
    background: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.premium-footer {
    margin-top: 16px;
    font-size: 12px;
    color: #86868b;
}