/* =============================================
   랭킹크루 홍보 사이트 - 다크 스포츠 테마
   ============================================= */

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2a45;
    --bg-card-hover: #243352;
    --bg-input: #0f1629;
    --text-primary: #ffffff;
    --text-secondary: #a8b2c1;
    --text-muted: #6c7a8d;
    --accent-red: #ff4757;
    --accent-red-hover: #ff6b7a;
    --accent-orange: #ffa502;
    --accent-orange-hover: #ffb833;
    --accent-green: #2ed573;
    --accent-blue: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-red-hover);
}

::selection {
    background: var(--accent-red);
    color: #fff;
}

/* ===== Navbar ===== */
#mainNav {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.95);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 7px 14px !important;
    border-radius: 20px;
    transition: var(--transition);
    line-height: 1.4;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-point-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 165, 2, 0.12);
    color: var(--accent-orange);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

/* 네비 버튼 (로그인/로그아웃) - nav-link와 높이 통일 */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: var(--transition);
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #e84341);
    color: #fff;
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.nav-btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-red), #e84341);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0f1629 60%, #12182d 100%);
}

/* 트랙 아크 배경 */
.hero-track-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-track-bg svg {
    width: 100%;
    height: 100%;
}

/* 미세한 그리드 패턴 */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, black 20%, transparent 70%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 165, 2, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 5s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 파티클 배경 */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

.p1 {
    width: 7px; height: 7px;
    color: var(--accent-red); background: var(--accent-red);
    top: 15%; left: 8%;
    animation: float-particle-a 7s ease-in-out infinite;
}
.p2 {
    width: 5px; height: 5px;
    color: var(--accent-orange); background: var(--accent-orange);
    top: 55%; left: 82%;
    animation: float-particle-b 6s ease-in-out infinite 0.8s;
}
.p3 {
    width: 9px; height: 9px;
    color: var(--accent-red); background: var(--accent-red);
    top: 78%; left: 25%;
    animation: float-particle-a 9s ease-in-out infinite 1.5s;
}
.p4 {
    width: 6px; height: 6px;
    color: var(--accent-green); background: var(--accent-green);
    top: 25%; left: 72%;
    animation: float-particle-c 8s ease-in-out infinite 0.3s;
}
.p5 {
    width: 4px; height: 4px;
    color: var(--accent-blue); background: var(--accent-blue);
    top: 45%; left: 48%;
    animation: float-particle-b 10s ease-in-out infinite 2s;
}
.p6 {
    width: 8px; height: 8px;
    color: var(--accent-orange); background: var(--accent-orange);
    top: 10%; left: 55%;
    animation: float-particle-c 7.5s ease-in-out infinite 1s;
}
.p7 {
    width: 5px; height: 5px;
    color: var(--accent-red); background: var(--accent-red);
    top: 68%; left: 60%;
    animation: float-particle-a 8.5s ease-in-out infinite 2.5s;
}
.p8 {
    width: 6px; height: 6px;
    color: #ff6b81; background: #ff6b81;
    top: 35%; left: 18%;
    animation: float-particle-b 9s ease-in-out infinite 0.5s;
}
.p9 {
    width: 4px; height: 4px;
    color: var(--accent-green); background: var(--accent-green);
    top: 85%; left: 75%;
    animation: float-particle-c 6.5s ease-in-out infinite 3s;
}
.p10 {
    width: 10px; height: 10px;
    color: var(--accent-orange); background: var(--accent-orange);
    top: 50%; left: 5%;
    animation: float-particle-a 11s ease-in-out infinite 1.8s;
}
.p11 {
    width: 3px; height: 3px;
    color: var(--accent-blue); background: var(--accent-blue);
    top: 8%; left: 90%;
    animation: float-particle-b 7s ease-in-out infinite 4s;
}
.p12 {
    width: 7px; height: 7px;
    color: var(--accent-red); background: var(--accent-red);
    top: 92%; left: 50%;
    animation: float-particle-c 8s ease-in-out infinite 0.2s;
}

@keyframes float-particle-a {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(40px, -50px) scale(1.8); opacity: 0.6; }
    50% { transform: translate(-25px, -100px) scale(1); opacity: 0.25; }
    75% { transform: translate(50px, -40px) scale(2); opacity: 0.55; }
}

@keyframes float-particle-b {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    30% { transform: translate(-35px, -60px) scale(2); opacity: 0.55; }
    60% { transform: translate(20px, -90px) scale(1.2); opacity: 0.35; }
    80% { transform: translate(-10px, -40px) scale(1.6); opacity: 0.5; }
}

@keyframes float-particle-c {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    20% { transform: translate(30px, -30px) scale(1.5); opacity: 0.5; }
    50% { transform: translate(-40px, -70px) scale(2.2); opacity: 0.6; }
    70% { transform: translate(15px, -50px) scale(1); opacity: 0.3; }
}

/* 히어로 뱃지 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--accent-orange);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-red), #e84341);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.45);
    color: #fff;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-hero-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.05);
    transform: translateY(-2px);
}

/* 히어로 미니 통계 */
.hero-mini-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.mini-stat i {
    color: var(--accent-red);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 폰 목업 */
.hero-phone-wrapper {
    position: relative;
    padding: 20px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.2) 0%, rgba(255, 165, 2, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: phone-glow-pulse 3s ease-in-out infinite;
}

@keyframes phone-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.phone-mockup {
    width: 260px;
    height: 520px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1e2a45, #151d33);
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: float 4s ease-in-out infinite;
}

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

.phone-notch {
    width: 120px;
    height: 28px;
    background: #0a0f1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.phone-screen {
    padding: 8px 16px 16px;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0 4px 12px;
}

.phone-status-bar i {
    font-size: 0.55rem;
    margin-left: 3px;
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* 러닝 카드 (폰 내부) */
.phone-running-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 12px;
}

.phone-pace-ring {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    position: relative;
}

.phone-pace-ring svg {
    width: 100%;
    height: 100%;
    animation: ring-draw 2s ease-out forwards;
}

@keyframes ring-draw {
    from { stroke-dasharray: 0 264; }
    to { stroke-dasharray: 200 264; }
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ring-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.phone-stats-row .ps-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.phone-stats-row .ps-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 크루 바 */
.phone-crew-bar {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.crew-avatars {
    display: flex;
}

.crew-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: -6px;
    border: 2px solid #1e2a45;
}

.crew-av:first-child {
    margin-left: 0;
}

/* 플로팅 카드 */
.hero-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.hero-float-card i {
    font-size: 1.2rem;
}

.hero-float-card strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-float-card small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.float-card-1 {
    top: 8%;
    right: -20px;
    animation: float-card-up 5s ease-in-out infinite;
}

.float-card-2 {
    bottom: 22%;
    left: -30px;
    animation: float-card-up 6s ease-in-out infinite 1s;
}

.float-card-3 {
    top: 45%;
    right: -40px;
    animation: float-card-up 5.5s ease-in-out infinite 2s;
}

.float-card-4 {
    bottom: 5%;
    right: 20px;
    animation: float-card-up 7s ease-in-out infinite 0.5s;
}

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

/* ===== Features Section ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-icon.red { background: rgba(255, 71, 87, 0.15); color: var(--accent-red); }
.feature-icon.orange { background: rgba(255, 165, 2, 0.15); color: var(--accent-orange); }
.feature-icon.green { background: rgba(46, 213, 115, 0.15); color: var(--accent-green); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

.feature-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 20px;
}


.stat-number {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.stat-number.is-text {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}


.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== Download Section ===== */
.download-section {
    text-align: center;
}

.store-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.store-badge-lg:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.store-badge-lg i {
    font-size: 1.5rem;
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-label-custom {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control-custom {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-custom:focus {
    background: var(--bg-input);
    border-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-red), #e84341);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    color: #fff;
}

.btn-submit:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-kakao {
    background: #FEE500;
    color: #191919;
}

.btn-naver {
    background: #03C75A;
    color: #fff;
}

.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-apple {
    background: #000;
    color: #fff;
}

/* ===== My Page ===== */
.page-wrapper {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.point-summary-card {
    background: linear-gradient(135deg, var(--accent-red), #e84341);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.point-summary-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.point-total-label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.point-total-value {
    font-size: 2.2rem;
    font-weight: 800;
}

.point-detail {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.point-detail-item {
    font-size: 0.85rem;
    opacity: 0.9;
}

.point-detail-item span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 1;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.info-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Mypage Sidebar Layout ===== */
.mypage-layout {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.mypage-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.mypage-content {
    flex: 1;
    min-width: 0;
    max-width: 720px;
}

.sidebar-profile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 12px;
}

.sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    overflow: hidden;
}

.sidebar-avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.sidebar-avatar i {
    font-size: 1.4rem;
    color: var(--accent-red);
}

.sidebar-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.sidebar-email {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.sidebar-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}

.sidebar-toggle:hover,
.sidebar-toggle.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

@media (max-width: 991px) {
    .mypage-layout {
        flex-direction: column;
        gap: 0;
    }

    .mypage-sidebar {
        width: 100%;
        display: none;
        margin-bottom: 20px;
    }

    .mypage-sidebar.open {
        display: block;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .sidebar-profile {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 16px 20px;
    }

    .sidebar-avatar {
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .sidebar-avatar img {
        width: 44px;
        height: 44px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .sidebar-link {
        flex: 1;
        min-width: calc(50% - 1px);
        justify-content: center;
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        font-size: 0.85rem;
    }

    .sidebar-link:nth-child(2n) {
        border-right: none;
    }

    .sidebar-link:nth-child(n+3) {
        border-top: 1px solid var(--border-color);
    }
}

/* ===== Profile Edit ===== */
.profile-image-edit {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-image-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.profile-image-preview i {
    font-size: 2rem;
    color: var(--accent-red);
}

/* ===== Point Charge ===== */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.amount-btn:hover {
    border-color: var(--accent-red);
    background: rgba(255, 71, 87, 0.08);
}

.amount-btn.selected {
    border-color: var(--accent-red);
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
}

.amount-btn .sub-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.charge-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.charge-info-row:last-child {
    border-bottom: none;
}

.charge-info-row .label {
    color: var(--text-secondary);
}

.charge-info-row .value {
    font-weight: 700;
}

.charge-info-row .value.accent {
    color: var(--accent-red);
    font-size: 1.1rem;
}

/* ===== History ===== */
.history-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-info .history-reason {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.history-info .history-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-amount {
    font-weight: 700;
    font-size: 1rem;
}

.history-amount.plus { color: var(--accent-green); }
.history-amount.minus { color: var(--accent-red); }

/* ===== Terms / Privacy ===== */
.terms-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terms-content h3, .terms-content h4 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.store-badge:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 30px 0 20px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Utilities ===== */
.text-accent { color: var(--accent-red) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-green { color: var(--accent-green) !important; }
.bg-dark-card { background: var(--bg-card); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.95rem;
}

.spinner-custom {
    color: var(--accent-red);
}

/* ===== Toast Overrides (Dark Theme) ===== */
#toast-container > .toast {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-sm) !important;
    opacity: 1 !important;
}
#toast-container > .toast .toast-message {
    color: var(--text-primary) !important;
}
#toast-container > .toast .toast-title {
    color: var(--text-primary) !important;
    font-weight: 700;
}
#toast-container > .toast .toast-close-button {
    color: var(--text-secondary) !important;
}
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-info,
#toast-container > .toast-warning {
    border-left: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid var(--border-color);
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        text-align: center;
        padding-top: 100px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-mini-stats {
        justify-content: center;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }

    .phone-notch {
        width: 100px;
        height: 24px;
    }

    .phone-pace-ring {
        width: 100px;
        height: 100px;
    }

    .ring-value {
        font-size: 1.4rem;
    }

    .hero-float-card {
        display: none;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .point-summary-card {
        padding: 24px;
    }

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

@media (max-width: 575px) {
    .point-detail {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== Loading overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

/* ===== Additional Styles (Refactored) ===== */
.ios-guide-section, .android-guide-section { background: var(--bg-body); padding: 100px 0; position: relative; overflow: hidden; }
.android-guide-section { background: rgba(0,0,0,0.2); }
.guide-step-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 32px; padding: 40px 30px; height: 100%; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; z-index: 1; }
.guide-step-card:hover { transform: translateY(-12px); border-color: var(--accent-red); box-shadow: 0 20px 40px rgba(255, 71, 87, 0.1); }
.step-number { width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent-red), var(--accent-orange)); color: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 24px; box-shadow: 0 8px 16px rgba(255, 71, 87, 0.2); }
.step-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; color: var(--text-main); }
.step-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.step-img-wrapper {
    width: 100%;
    aspect-ratio: 9/16;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}
.step-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}
.guide-step-card:hover .step-img-wrapper img { transform: scale(1.05); }
.step-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; padding: 20px; }
.step-fallback i { font-size: 3rem; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; display: block; }
.step-fallback span { font-size: 0.75rem; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 1px; }
.feature-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.feature-icon.teal { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }
.feature-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.blog-section { padding: 100px 0; background: var(--bg-primary); }
.blog-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: var(--transition); cursor: pointer; position: relative; }
.blog-card:hover { transform: translateY(-10px); border-color: var(--accent-red); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.blog-card-img i { font-size: 3.5rem; transition: var(--transition); }
.blog-card:hover .blog-card-img i { transform: scale(1.1); }
.blog-card-body { padding: 25px; }
.blog-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }
.blog-title { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; color: var(--text-primary); }
.blog-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }

.modal-content { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); color: var(--text-primary); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 25px; }
.modal-body { padding: 35px; line-height: 1.8; font-size: 1.05rem; color: var(--text-secondary); }
.modal-footer { border-top: 1px solid var(--border-color); padding: 20px 25px; }
.modal-header .btn-close { filter: invert(1); opacity: 0.5; }

.icon-purple { color: #a855f7; }
.icon-teal { color: #14b8a6; }
.icon-indigo { color: #6366f1; }
.icon-red { color: var(--accent-red); }
.icon-orange { color: var(--accent-orange); }
.icon-blue { color: var(--accent-blue); }
.icon-pink { color: #ec4899; }
