:root {
    --bg-fallback: #000000;
    --bg-gradient: linear-gradient(180deg,
            #000000 0%,
            #000000 100%);

    --card-bg: rgba(34, 36, 41, 0.80);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A4A8;
    --text-accent: #FFFFFF;
    --btn-bg: rgba(21, 22, 25, 0.82);

    --font-family: 'Inter', sans-serif;
    --app-width: 358px;

    --spacing-sm: 6px;
    --spacing-md: 12px;
    --spacing-lg: 16px;

    --radius-lg: 20px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg-fallback);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-fallback);
    font-family: var(--font-family);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bg-gradient);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 72px;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.65) 45%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

.app-container {
    width: 100%;
    max-width: var(--app-width);
    margin: 16px auto 0;
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 1;
}

/* HEADER CARD */
.header-card {
    position: relative;
    z-index: 10;
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: var(--app-width);
    height: 228px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.profile-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.back-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-section-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 400;
}

/* QUICK ACTIONS */
.quick-actions {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.action-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.action-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.action-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CONTENT AREA */
.content-area {
    width: 100%;
    max-width: var(--app-width);
    margin: 0 auto;
}

.view {
    width: 100%;
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDS & LISTS */
.content-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.menu-list {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0 var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.menu-list.no-padding {
    padding: 0;
}

.list-row {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.menu-list.no-padding .list-row {
    padding: 16px var(--spacing-lg);
}

.list-row.border-none {
    border-bottom: none;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-md);
    object-fit: contain;
    flex-shrink: 0;
}

.social-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: var(--spacing-md);
    object-fit: contain;
    flex-shrink: 0;
}

.row-text {
    font-size: 0.95rem;
    font-weight: 400;
    min-width: 0;
}

.flex-1 {
    flex: 1;
}

.row-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.powered-by {
    width: 100%;
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.powered-by a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.powered-by a:hover {
    opacity: 1;
}

/* TYPOGRAPHY IN CONTENT */
.section-heading {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.3px;
}

.section-paragraph {
    font-size: 0.95rem;
    color: #D4D8DB;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 12px;
}

.text-sm {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #B8BCC0;
    font-weight: 400;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: var(--spacing-lg) 0;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: transparent;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:active img {
    transform: scale(0.95);
}

.video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

/* GALLERY MODAL */
.gallery-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-header {
    position: absolute;
    top: env(safe-area-inset-top);
    left: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: flex-end;
    z-index: 1001;
}

.modal-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    align-items: center;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.slide img,
.slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.slider-nav img {
    width: 24px;
    height: 24px;
    display: block;
}

.slider-arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

/* UTILITIES */
.external-link {
    display: flex;
    align-items: center;
}

.glass-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}