/* ========================================
   BioLink Pro - Ultimate Profile Link
   Inspired by litt.ly, 19x.link, zik.li
   ======================================== */

/* Paperozi Font */
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Dark Theme - Premium */
    --bg-primary: #09090b;
    --bg-inner: #18181b;
    --bg-secondary: #27272a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    --text-primary: #fafafa;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Button Defaults */
    --btn-bg: #27272a;
    --btn-text: #fafafa;

    /* Gradient Colors */
    --accent-pink: #e879f9;
    --accent-purple: #a855f7;
    --accent-cyan: #22d3ee;
    --accent-yellow: #facc15;

    --gradient-main: linear-gradient(135deg, #e879f9 0%, #a855f7 50%, #7c3aed 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.2) 0%, transparent 60%);

    --glass-bg: rgba(39, 39, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(180, 91, 255, 0.3);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --max-width: 520px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
}

body {
    font-family: 'Paperozi', -apple-system, BlinkMacSystemFont, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ========================================
   Background Effects
   ======================================== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(180, 91, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 47, 114, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(49, 228, 214, 0.1) 0%, transparent 50%);
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(180, 91, 255, 0.12) 0%, transparent 60%);
    animation: glowFloat 10s ease-in-out infinite;
}

@keyframes glowFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(30px); }
}

/* ========================================
   Marquee Banner
   ======================================== */
.marquee-banner {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    z-index: 1000;
    background: var(--gradient-main);
    padding: 10px 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 15s linear infinite reverse;
    will-change: transform;
}

.marquee-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    padding-right: 80px;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-banner:hover .marquee-content {
    animation-play-state: paused;
}

/* ========================================
   Top Actions (Share Button)
   ======================================== */
.top-actions {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

/* 배너 있을 때 공유버튼 위치 조정 */
body.has-banner .top-actions {
    top: 56px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

/* Banner visible 상태일 때 - 갭 없이 바로 연결 */
body.has-banner .cover-section {
    margin-top: 0;
}

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

/* ========================================
   Main Container
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 100px;
    background: var(--bg-inner);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

/* ========================================
   Cover Image (zik.li style)
   ======================================== */
.cover-section {
    position: relative;
    margin: 0 -20px;
    height: 400px;
    overflow: hidden;
}

.cover-image,
.cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    display: none;
}

.cover-video {
    position: absolute;
    top: 0;
    left: 0;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0.6;
}

/* 커버 오버레이 콘텐츠 */
.cover-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 60px; /* 하단 오버레이에 가려지지 않게 */
    pointer-events: none;
    z-index: 5;
}

.cover-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3%;
}

.cover-sticker {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: auto;
}

.cover-text {
    font-family: 'Paperozi', sans-serif;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.cover-title {
    font-family: 'Paperozi', sans-serif;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.cover-subtitle {
    font-family: 'Paperozi', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.4;
}

/* 커버 텍스트 위치 */
.cover-overlay-content.pos-top-left { justify-content: flex-start; align-items: flex-start; }
.cover-overlay-content.pos-top-center { justify-content: flex-start; align-items: center; }
.cover-overlay-content.pos-top-right { justify-content: flex-start; align-items: flex-end; }
.cover-overlay-content.pos-center-left { justify-content: center; align-items: flex-start; }
.cover-overlay-content.pos-center { justify-content: center; align-items: center; }
.cover-overlay-content.pos-center-right { justify-content: center; align-items: flex-end; }
.cover-overlay-content.pos-bottom-left { justify-content: flex-end; align-items: flex-start; }
.cover-overlay-content.pos-bottom-center { justify-content: flex-end; align-items: center; }
.cover-overlay-content.pos-bottom-right { justify-content: flex-end; align-items: flex-end; }

/* ========================================
   Profile Section (zik.li/@ddong 스타일 - 커버 overlap)
   ======================================== */
.profile {
    text-align: center;
    margin-top: -40px;
    padding-top: 50px;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.6s ease-out;
}

/* 커버를 덮는 둥근 모서리 배경 - 안쪽 배경색 사용 */
.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: -1000px;
    background: var(--bg-inner);
    border-radius: 24px 24px 0 0;
    z-index: -1;
}

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

.profile-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.profile-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-main);
    padding: 3px;
}

.profile-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-inner);
    border-radius: 50%;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-inner);
    transition: var(--transition-medium);
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-badge {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(49, 228, 214, 0.4);
}

.profile-username {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto 20px;
    line-height: 1.6;
    white-space: pre-line;
}

/* Social Icons Row */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.social-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Links Section
   ======================================== */
.links-section {
    margin-bottom: 24px;
    position: relative;
    z-index: 3;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   Link Card Styles
   ======================================== */

/* Base Link Card */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    min-height: 80px;
    border-radius: var(--radius-md);
    background: var(--btn-bg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--btn-text);
    overflow: hidden;
    transition: var(--transition-medium);
    animation: cardSlide 0.5s ease-out both;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 47, 114, 0.05) 0%, rgba(180, 91, 255, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(180, 91, 255, 0.3);
    box-shadow: var(--shadow-card), 0 0 30px rgba(180, 91, 255, 0.15);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:active {
    transform: scale(0.98);
}

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

/* Staggered animation */
.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.1s; }
.link-card:nth-child(3) { animation-delay: 0.15s; }
.link-card:nth-child(4) { animation-delay: 0.2s; }
.link-card:nth-child(5) { animation-delay: 0.25s; }
.link-card:nth-child(6) { animation-delay: 0.3s; }
.link-card:nth-child(7) { animation-delay: 0.35s; }
.link-card:nth-child(8) { animation-delay: 0.4s; }

/* Link Icon */
.link-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.link-icon img,
.link-icon video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.link-icon.has-video {
    overflow: hidden;
}

.link-card:hover .link-icon {
    background: rgba(180, 91, 255, 0.2);
}

/* Link Content */
.link-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.link-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-description {
    display: block;
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.link-card:hover .link-arrow {
    color: var(--text-primary);
    transform: translateX(3px);
}

/* 링크 스티커 - 제목 위에 표시 */
.link-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.link-sticker {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   Special Link Variants
   ======================================== */

/* Featured/Premium Card */
.link-card.featured {
    background: linear-gradient(135deg, rgba(255, 47, 114, 0.1) 0%, rgba(180, 91, 255, 0.1) 100%);
    border-color: rgba(180, 91, 255, 0.25);
}

.link-card.featured .link-icon {
    background: var(--gradient-main);
    color: white;
}

/* ========================================
   Block Types (텍스트, 이미지, 동영상, 구분선)
   ======================================== */

/* 구분선 블록 */
.block-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 8px 0;
    animation: cardSlide 0.5s ease-out both;
}

/* 텍스트 블록 */
.block-text {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    animation: cardSlide 0.5s ease-out both;
}

.block-text-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.block-text-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 이미지 블록 */
.block-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg);
    animation: cardSlide 0.5s ease-out both;
}

.block-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.block-image-caption {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 동영상 블록 */
.block-video {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg);
    animation: cardSlide 0.5s ease-out both;
}

.block-video video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.block-video-caption {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Large Card (litt.ly style) - 대형 썸네일 */
.link-card.large {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: var(--glass-bg);
}

.link-card.large .link-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 비디오 썸네일 */
video.link-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.link-card.large:hover .link-thumbnail {
    transform: scale(1.03);
}

.link-card.large .link-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass-bg);
}

.link-card.large .link-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.link-card.large .link-content {
    min-width: 0;
    padding: 12px 16px;
}

.link-card.large .link-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.link-card.large .link-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.link-card.large .link-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 썸네일 없이 large 스타일인 경우 */
.link-card.large:not(:has(.link-thumbnail)) {
    padding: 18px;
    flex-direction: row;
}

.link-card.large:not(:has(.link-thumbnail)) .link-body {
    padding: 0;
    background: transparent;
}

/* Pill Button Style (19x.link style) */
.link-card.pill {
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    justify-content: center;
    text-align: center;
}

.link-card.pill .link-icon {
    display: none;
}

.link-card.pill .link-content {
    flex: none;
}

.link-card.pill .link-arrow {
    display: none;
}

/* Grid Layout for multiple items */
.links-grid {
    display: grid;
    gap: 12px;
}

.links-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.links-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.links-grid .link-card {
    flex-direction: column;
    text-align: center;
    padding: 0;
    min-height: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.links-grid .link-card .link-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.links-grid .link-card .link-thumbnail img,
.links-grid .link-card .link-thumbnail video,
.links-grid .link-card video.link-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.links-grid .link-card .link-icon {
    display: none;
}

.links-grid .link-card .link-content {
    flex: none;
    padding: 8px 4px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    gap: 2px;
}

.links-grid .link-title {
    font-size: 0.85rem;
    white-space: normal;
}

.links-grid.grid-3 .link-title {
    font-size: 0.825rem;
}

.links-grid .link-description {
    font-size: 0.77rem;
    white-space: pre-line;
    margin-top: 0;
}

.links-grid.grid-3 .link-description {
    font-size: 0.66rem;
}

.links-grid .link-arrow {
    display: none;
}

.links-grid .link-stickers {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0;
    padding: 8px 8px 0;
    gap: 4px;
}

.links-grid .link-stickers:empty {
    display: none;
}

.links-grid .link-sticker {
    font-size: 0.6rem;
    padding: 2px 6px;
}

/* ========================================
   Stats/Counter Section
   ======================================== */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 0;
    margin-bottom: 24px;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: var(--transition-fast);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    text-decoration: none;
}

.admin-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: rotate(180deg);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.brand {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========================================
   Skeleton Loading
   ======================================== */
.link-skeleton {
    height: 76px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg,
        var(--glass-bg) 25%,
        rgba(255, 255, 255, 0.06) 50%,
        var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ========================================
   Utilities
   ======================================== */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection {
    background: rgba(180, 91, 255, 0.3);
    color: var(--text-primary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 540px) {
    .container { padding: 0 16px 80px; max-width: 100%; }
    .marquee-banner { max-width: 100%; left: 0; transform: none; border-radius: 0; padding-top: calc(env(safe-area-inset-top) + 10px); }
    .cover-section { margin: 0 -16px; height: 300px; }
    .profile { margin-top: -30px; padding-top: 40px; }
    .profile::before { left: -16px; right: -16px; border-radius: 20px 20px 0 0; }
    .profile-name { font-size: 1.35rem; }
    .link-card { padding: 12px 14px; gap: 12px; }
    .link-card.large { padding: 0; gap: 0; }
    .link-icon { width: 44px; height: 44px; min-width: 44px; }
    .links-grid { gap: 10px; }
    .links-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .links-grid.grid-3 .link-card { padding: 0; min-height: 80px; }
    .links-grid.grid-3 .link-icon { width: 32px; height: 32px; min-width: 32px; }
    .links-grid.grid-3 .link-title { font-size: 0.7rem; }

    /* 모바일 배너 */
    .marquee-banner { padding: 8px 0; }
    .marquee-text { font-size: 0.8rem; }
    body.has-banner .cover-section { margin-top: 0; }
    body.has-banner .top-actions { top: 48px; }
    .top-actions { top: 12px; right: 16px; }
    .action-btn { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* Touch devices */
@media (hover: none) {
    .link-card:hover { transform: none; }
    .link-card:active { transform: scale(0.97); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print */
@media print {
    .bg-animation, .admin-link { display: none; }
    body { background: white; color: black; }
    .link-card { border: 1px solid #ccc; background: white; }
}
