/* =====================================================
   MONEY DIPLOMATIC - ALGOSONE INSPIRED THEME
   Shared CSS for all pages - Clean, Modern, Premium
   ===================================================== */

/* === CSS VARIABLES - ALGOSONE STYLE === */
:root {
    --bg-primary: #0a0b14;
    --bg-secondary: #0d0e1a;
    --bg-tertiary: #12142a;
    --bg-card: rgba(20, 22, 45, 0.6);
    --bg-hover: rgba(30, 32, 60, 0.8);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.3);
    
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-active: rgba(59, 130, 246, 0.4);
    
    --accent-primary: #3B82F6;
    --accent-cyan: #22D3EE;
    --accent-violet: #8B5CF6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-green: #10B981;
    --accent-green-bg: rgba(16, 185, 129, 0.1);
    --accent-red: #EF4444;
    
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d0e1a 25%, #1a0a2e 50%, #0d0e1a 75%, #0a1628 100%);
    --gradient-section: linear-gradient(180deg, #0a0b14 0%, #0d1025 50%, #0a0b14 100%);
    --gradient-card: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);
    --glow-violet: 0 0 40px rgba(139, 92, 246, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;
}

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

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* === SHARED HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-primary);
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.header__nav-link:hover { 
    color: var(--text-primary); 
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.header__auth-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

.header__auth-link:hover { 
    color: var(--text-primary); 
}

.header__auth-link--primary {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.header__auth-link--primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* === SHARED FOOTER === */
.footer {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    font-size: 13px;
    color: var(--text-dim);
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__link {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer__link:hover { color: var(--text-primary); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.btn--primary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn--accent {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
}

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

.btn--full {
    width: 100%;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input--textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    margin-top: 2px;
}

.form-checkbox span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* === CARDS === */
.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.08);
}

/* === SECTION LABELS === */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    padding: 10px 24px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.06);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge--primary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.badge--cyan {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.badge--green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

/* === PAGE HERO === */
.page-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

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

.page-hero__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-hero__subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === LEGAL PAGES === */
.legal-content {
    padding: 80px 0;
}

.legal-content__inner {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.legal-content p {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin: 16px 0 24px 24px;
}

.legal-content li {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-content .last-updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 40px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .header__nav { display: none; }
    .header__inner { padding: 0 20px; }
    .container { padding: 0 20px; }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
