/**
 * OnURL - Modern Dynamic Style
 * Inspired by imweb.me/theme
 */

/* =====================================================
   CSS Variables
===================================================== */
:root {
    /* Primary Colors - Gradient Theme */
    --primary-color: #FF6B6B;
    --primary-dark: #EE5A5A;
    --primary-light: #FF8E8E;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --gradient-hero: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 50%, #0c0c1d 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    /* Dark Theme */
    --dark-bg: #0c0c1d;
    --dark-secondary: #12122a;
    --dark-card: #1a1a3e;
    --dark-border: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Fonts */
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 107, 107, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   Particles Background
===================================================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =====================================================
   Navbar
===================================================== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(12, 12, 29, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: white;
}

.btn-register-nav {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    margin-left: 0.5rem;
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =====================================================
   Hero Section
===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 230, 109, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.badge-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* URL Form Container */
.url-form-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.url-form {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.input-group-custom {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.input-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.url-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1rem;
    padding: 0.75rem 0 !important;
}

.url-input::placeholder {
    color: var(--text-muted);
}

.url-input:focus {
    outline: none;
    box-shadow: none !important;
}

.btn-shorten {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--transition-normal);
}

.btn-shorten:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

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

/* Advanced Options */
.advanced-options-toggle {
    text-align: center;
    margin-top: 1rem;
}

.toggle-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.toggle-link:hover {
    color: var(--text-secondary);
}

.toggle-link.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: var(--transition-fast);
}

.advanced-options {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dark-border);
}

.option-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.option-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.advanced-options .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    color: white;
    border-radius: var(--radius-sm);
}

.advanced-options .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.advanced-options .input-group-text {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--dark-border);
    border-right: none;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Result Container */
.result-container {
    margin-top: 1.5rem;
}

.result-box {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.result-success-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.result-url-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.result-url-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    width: 100%;
}

.result-url {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    word-break: break-all;
}

.result-url:hover {
    color: var(--primary-color);
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.result-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-copy {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-copy.copied {
    background: var(--secondary-color);
}

.btn-visit {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--dark-border);
}

.btn-visit:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-qr {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--dark-border);
}

.btn-qr:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.result-original {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.result-original span {
    word-break: break-all;
}

.btn-new {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-new:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Error Container */
.error-container {
    margin-top: 1rem;
}

.error-container .alert {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: left;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-item i {
    color: var(--secondary-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

.arrow-down {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* =====================================================
   Stats Section
===================================================== */
.stats-section {
    padding: 5rem 0;
    background: var(--dark-secondary);
    position: relative;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-uptime::after {
    content: '%';
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   Section Common Styles
===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.15);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Features Section
===================================================== */
.features-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition-normal);
}

.feature-icon.gradient-2 {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.feature-icon.gradient-3 {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
}

.feature-icon.gradient-4 {
    background: linear-gradient(135deg, #FFE66D 0%, #F59E0B 100%);
}

.feature-icon.gradient-5 {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.feature-icon.gradient-6 {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

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

.feature-link {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.feature-link:hover {
    color: var(--primary-light);
    gap: 0.75rem;
}

/* =====================================================
   How It Works Section
===================================================== */
.how-it-works-section {
    padding: 6rem 0;
    background: var(--dark-secondary);
}

.steps-container {
    position: relative;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

.step-item.active {
    background: rgba(255, 107, 107, 0.1);
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.step-connector {
    width: 2px;
    height: 30px;
    background: var(--dark-border);
    margin-left: 2.25rem;
}

/* Demo Preview */
.demo-preview {
    position: relative;
}

.demo-browser {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--dark-border);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #febc2e;
}

.browser-dots span:nth-child(3) {
    background: #28c840;
}

.browser-url {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.browser-content {
    padding: 2rem;
}

.demo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.demo-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.demo-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 1.5s ease-in-out infinite;
}

.demo-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.demo-result-url {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.demo-copy-btn {
    background: rgba(78, 205, 196, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    cursor: pointer;
}

/* =====================================================
   Use Cases Section
===================================================== */
.use-cases-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0 auto 1.25rem;
    transition: var(--transition-normal);
}

.use-case-card:hover .use-case-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.use-case-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* =====================================================
   FAQ Section
===================================================== */
.faq-section {
    padding: 6rem 0;
    background: var(--dark-secondary);
}

.accordion-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: white !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B6B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   CTA Section
===================================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* =====================================================
   Footer
===================================================== */
.footer {
    background: var(--dark-bg);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -99px;
    left: 0;
    right: 0;
    height: 100px;
    color: var(--dark-bg);
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.footer-brand .brand-text {
    font-size: 1.25rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.btn-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.btn-language img {
    width: 20px;
    border-radius: 2px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* =====================================================
   Back to Top Button
===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* =====================================================
   Responsive Design
===================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .input-group-custom {
        flex-direction: column;
        padding: 1rem;
    }

    .input-icon {
        display: none;
    }

    .url-input {
        width: 100%;
        text-align: center;
    }

    .btn-shorten {
        width: 100%;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .demo-preview {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .features-section,
    .how-it-works-section,
    .use-cases-section,
    .faq-section {
        padding: 4rem 0;
    }

    .navbar-collapse {
        background: rgba(12, 12, 29, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--dark-border);
    }

    .result-actions {
        flex-direction: column;
        width: 100%;
    }

    .result-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding-top: 100px;
    }

    .url-form {
        padding: 1rem;
    }

    .advanced-options .row {
        gap: 1rem;
    }

    .advanced-options .col-md-6 {
        width: 100%;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .footer .row > div {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* =====================================================
   Error Pages
===================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* Password Page */
.password-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.password-box {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.password-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.password-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.password-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-unlock {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* My URLs Section */
.my-urls-section {
    padding: 4rem 0;
    background: var(--dark-secondary);
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-inline h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* =====================================================
   Page Header (Sub Pages)
===================================================== */
.page-header {
    background: var(--dark-secondary);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    background: var(--dark-bg);
}

/* =====================================================
   Auth Pages (Login / Register)
===================================================== */
.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.auth-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    color: white;
}

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

.auth-form .input-group-text {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--dark-border);
    border-right: none;
    color: var(--text-muted);
}

.auth-form .input-group .form-control {
    border-left: none;
}

.auth-form .input-group .btn-outline-secondary {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--dark-border);
    border-left: none;
    color: var(--text-muted);
}

.auth-form .input-group .btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-secondary);
}

.auth-form .form-check-input {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--dark-border);
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-label {
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.auth-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--dark-border);
}

.auth-divider span {
    position: relative;
    background: var(--dark-card);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-google {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--dark-border);
    color: white;
}

.btn-google:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* 카카오 공식 디자인 */
.btn-kakao {
    background: #FEE500;
    border: none;
    color: #000000;
    font-weight: 600;
}

.btn-kakao:hover:not(:disabled) {
    background: #E6CF00;
    color: #000000;
}

.btn-kakao .kakao-icon {
    width: 18px;
    height: 18px;
}

/* 네이버 공식 디자인 */
.btn-naver {
    background: #03C75A;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
}

.btn-naver:hover:not(:disabled) {
    background: #02B350;
    color: #FFFFFF;
}

.btn-naver .naver-icon {
    width: 16px;
    height: 16px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-light);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--dark-border);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.strength-text {
    font-size: 0.75rem;
    min-width: 40px;
}

/* Register Benefits */
.register-benefits {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.register-benefits h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.register-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.register-benefits li i {
    color: var(--secondary-color);
}

/* =====================================================
   Guide Page
===================================================== */
.guide-steps {
    margin-bottom: 4rem;
}

.step-number-large {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.guide-steps h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.guide-steps p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.guide-list li i {
    color: var(--secondary-color);
}

.guide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
}

.demo-input-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.demo-input-preview i {
    color: var(--primary-color);
}

.demo-btn-preview {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    cursor: default;
}

.result-preview {
    text-align: center;
}

.result-url-preview {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.result-actions-preview {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.guide-features {
    padding: 4rem 0;
    border-top: 1px solid var(--dark-border);
}

.feature-box {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
}

.feature-box .feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

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

.guide-cta {
    padding-top: 4rem;
    border-top: 1px solid var(--dark-border);
}

.guide-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.guide-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =====================================================
   FAQ Page
===================================================== */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.faq-cat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.faq-cat-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.faq-accordion {
    margin-top: 2rem;
}

.faq-accordion .accordion-body ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

.faq-accordion .accordion-body li {
    margin-bottom: 0.5rem;
}

.faq-accordion .accordion-body code {
    background: rgba(255, 107, 107, 0.15);
    color: var(--primary-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.faq-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
}

.faq-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* =====================================================
   Board / Contact Page
===================================================== */
.contact-info-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-fast);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 107, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-color);
}

.contact-form-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form-card h3 {
    color: white;
    font-weight: 700;
}

.contact-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-form .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.contact-form .form-select {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.contact-form .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    color: white;
}

.contact-form .form-select:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    color: white;
}

.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form .form-select option {
    background: var(--dark-card);
    color: white;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* =====================================================
   Buttons (Common)
===================================================== */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-outline-custom:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* =====================================================
   Alert Messages
===================================================== */
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--secondary-color);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--primary-color);
}

.alert .btn-close {
    filter: invert(1);
    opacity: 0.5;
}

.invalid-feedback {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* =====================================================
   Responsive for Sub Pages
===================================================== */
@media (max-width: 991px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .guide-steps .row {
        text-align: center;
    }

    .guide-image {
        margin-top: 2rem;
    }

    .step-number-large {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .page-content {
        padding: 3rem 0;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .faq-categories {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .page-header {
        padding: 5rem 0 2rem;
    }

    .result-actions-preview {
        flex-direction: column;
    }
}

/* =====================================================
   Dashboard Styles
===================================================== */
.page-dashboard .page-content {
    min-height: 60vh;
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
    height: 100%;
    min-height: 120px;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bg-primary-gradient {
    background: var(--gradient-primary);
}

.bg-success-gradient {
    background: var(--gradient-secondary);
}

.bg-info-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: var(--text-primary);
    word-break: break-all;
}

.stat-content .stat-value.api-key-preview {
    font-size: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.stat-content .stat-label {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header-custom {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-custom h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body-custom {
    padding: 1.5rem;
}

/* Dashboard Action Cards */
.dashboard-action-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
}

.dashboard-action-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-action-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.dashboard-action-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Dashboard Table */
.table-dashboard {
    margin-bottom: 0;
    color: var(--text-primary);
}

.table-dashboard thead th {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--dark-border);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table-dashboard tbody td {
    border-color: var(--dark-border);
    padding: 1rem;
    vertical-align: middle;
}

.table-dashboard tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.short-url-link {
    font-weight: 500;
    color: var(--secondary-color);
}

.short-url-link:hover {
    color: var(--primary-color);
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    color: var(--primary-color);
}

.original-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Settings Form */
.settings-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.settings-form .form-control {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.settings-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.settings-form .form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.api-key-input {
    font-family: monospace;
    letter-spacing: 1px;
}

.api-example {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.875rem;
}

.api-example code {
    color: var(--secondary-color);
    white-space: pre;
}

/* =====================================================
   API Documentation Styles
===================================================== */
.guide-api {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--dark-border);
}

.api-section {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.api-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.api-section h5 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.api-code {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.api-code code {
    color: var(--secondary-color);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    white-space: pre;
}

.api-section .table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.api-section .table th {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--dark-border);
    color: var(--text-secondary);
    font-weight: 500;
}

.api-section .table td {
    border-color: var(--dark-border);
    vertical-align: middle;
}

.api-section .table code {
    background: var(--dark-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Button Outline Custom */
.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dashboard Responsive */
@media (max-width: 991px) {
    .dashboard-stat-card {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .dashboard-stat-card {
        padding: 1.25rem;
        min-height: auto;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-content .stat-value {
        font-size: 1.25rem;
    }

    .stat-content .stat-value.api-key-preview {
        font-size: 0.9rem;
    }

    .card-header-custom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .table-dashboard {
        font-size: 0.875rem;
    }

    .api-section {
        padding: 1.25rem;
    }

    .api-code {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-card {
        padding: 1rem;
        gap: 1rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .stat-content .stat-value {
        font-size: 1.1rem;
    }

    .stat-content .stat-label {
        font-size: 0.8rem;
    }
}

/* =====================================================
   API Page Styles
===================================================== */
.page-api .page-content {
    padding-bottom: 4rem;
}

/* API Sidebar */
.api-sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.api-sidebar h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.api-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.api-nav a {
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.api-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.api-key-box {
    border-top: 1px solid var(--dark-border);
    padding-top: 1rem;
}

.api-key-box h6 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* API Section Enhancements */
.api-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.api-endpoint .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
}

.api-endpoint code {
    background: var(--dark-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.api-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.api-note i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.api-note a {
    color: var(--primary-color);
}

/* Feature box link */
.feature-box-link {
    text-decoration: none;
    display: block;
}

.feature-box-link .feature-box {
    cursor: pointer;
}

.feature-box-link:hover .feature-box {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-box-link .feature-box h4,
.feature-box-link .feature-box p {
    color: inherit;
}

/* API Page Responsive */
@media (max-width: 991px) {
    .api-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .api-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .api-nav a {
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    .api-section {
        padding: 1.25rem;
    }

    .api-section h3 {
        font-size: 1.25rem;
    }

    .api-endpoint {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   Legal Pages (Terms, Privacy)
===================================================== */
.legal-content {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-section ul ul,
.legal-section ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-section .table {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legal-section .table th {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--dark-border);
    color: var(--text-secondary);
    font-weight: 500;
}

.legal-section .table td {
    border-color: var(--dark-border);
}

.legal-section .info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.legal-section .info-box p {
    margin-bottom: 0.25rem;
}

.legal-section .info-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }
}
