:root {
    --sphp-primary: #005963;
    --sphp-primary-dark: #004249;
    --sphp-accent: #00a6b9;
    --sphp-accent-light: #00acb1;
    --sphp-bg: #effbfa;
    --sphp-bg-soft: #fcf7ff;
    --sphp-text: #4a5568;
    --sphp-border: #e2eef0;
    --sphp-shadow: 0 12px 40px rgba(0, 89, 99, .08);
    --sphp-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Heebo', system-ui, sans-serif;
    color: var(--sphp-text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: var(--sphp-primary);
    font-weight: 700;
    letter-spacing: -.02em;
}

a { color: var(--sphp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sphp-accent); }

/* Buttons */
.sphp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    background: var(--sphp-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 14px rgba(0, 166, 185, .25);
}
.sphp-btn:hover {
    background: #008a99;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 166, 185, .35);
}
.sphp-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
}
.sphp-btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    transform: translateY(-1px);
}
.sphp-btn-sm { padding: 8px 18px; font-size: .875rem; }

/* Header */
.sphp-header-top {
    background: var(--sphp-primary-dark);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
}
.sphp-header-top a { color: rgba(255, 255, 255, .85); }
.sphp-header-top a:hover { color: #fff; }

.sphp-header-nav {
    background: rgba(0, 89, 99, .92);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: background .3s, box-shadow .3s;
    z-index: 1030;
}
.sphp-header-nav.scrolled {
    background: rgba(255, 255, 255, .97);
    color: var(--sphp-primary);
    box-shadow: var(--sphp-shadow);
}
.sphp-logo { height: 44px; width: auto; }

.sphp-nav-link {
    color: rgba(255, 255, 255, .92);
    padding: .75rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.sphp-nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sphp-header-nav.scrolled .sphp-nav-link { color: var(--sphp-primary); }
.sphp-header-nav.scrolled .sphp-nav-link:hover { background: var(--sphp-bg); color: var(--sphp-accent); }

.sphp-mobile-nav {
    background: #fff;
    border-top: 1px solid var(--sphp-border);
}
.sphp-mobile-nav a {
    display: block;
    padding: .75rem 0;
    color: var(--sphp-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--sphp-border);
}
.sphp-mobile-nav a:last-child { border-bottom: none; }

.sphp-nav-mobile {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Hero */
.sphp-hero {
    min-height: clamp(520px, 70vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}
.sphp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 66, 73, .75), rgba(0, 89, 99, .55));
}
.sphp-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    padding: 140px 24px 90px;
}
.sphp-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}
.sphp-hero p { color: rgba(255, 255, 255, .92); font-size: 1.125rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Sections & cards */
.sphp-section { padding: clamp(56px, 8vw, 96px) 0; }
.sphp-section-alt { background: var(--sphp-bg); }

.sphp-card {
    background: #fff;
    border: 1px solid var(--sphp-border);
    border-radius: var(--sphp-radius);
    padding: 28px;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sphp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sphp-shadow);
    border-color: rgba(0, 166, 185, .2);
}

.sphp-step-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--sphp-radius);
    background: #fff;
    box-shadow: var(--sphp-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sphp-accent);
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sphp-page-header {
    background: linear-gradient(180deg, var(--sphp-bg) 0%, #fff 100%);
    padding: clamp(120px, 16vw, 160px) 0 clamp(48px, 6vw, 72px);
    text-align: center;
    border-bottom: 1px solid var(--sphp-border);
}
.sphp-page-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0; }

.sphp-footer {
    background: var(--sphp-bg-soft);
    padding: 56px 0 32px;
    margin-top: 0;
    border-top: 1px solid var(--sphp-border);
}
.sphp-footer h5 { font-size: 1rem; margin-bottom: 1rem; }
.sphp-footer a { color: var(--sphp-text); }
.sphp-footer a:hover { color: var(--sphp-accent); }

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--sphp-border);
    padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sphp-accent);
    box-shadow: 0 0 0 3px rgba(0, 166, 185, .15);
}
.form-label { font-weight: 500; color: var(--sphp-primary); font-size: .9rem; }

.alert { border-radius: var(--sphp-radius); border: none; }

/* Cookie banner */
.sphp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid var(--sphp-border);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
    padding: 1rem 0;
}
.sphp-cookie-banner p { margin: 0; font-size: .9rem; color: var(--sphp-text); }

/* Dashboard */
.sphp-dash-topbar {
    background: #fff;
    border-bottom: 1px solid var(--sphp-border);
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.sphp-dashboard-sidebar {
    background: linear-gradient(180deg, #f6fffb 0%, #f0faf9 100%);
    border-right: 1px solid var(--sphp-border) !important;
}
.sphp-dash-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 11px 16px;
    border-radius: 10px;
    color: var(--sphp-primary);
    margin-bottom: 4px;
    font-weight: 500;
    font-size: .925rem;
    transition: background .2s, color .2s;
}
.sphp-dash-link:hover { background: rgba(0, 166, 185, .08); color: var(--sphp-accent); }
.sphp-dash-link.active {
    background: #fff;
    font-weight: 600;
    color: var(--sphp-accent);
    box-shadow: 0 2px 8px rgba(0, 89, 99, .08);
}
.sphp-dash-main { background: #fafcfc; min-height: 100vh; }
.sphp-dash-profile {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--sphp-border);
}
.sphp-dash-profile img, .sphp-dash-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: .75rem;
    border: 3px solid #fff;
    box-shadow: var(--sphp-shadow);
}

.sphp-msg-bubble { max-width: 75%; padding: .65rem 1rem; border-radius: 14px; display: inline-block; }
.sphp-msg-mine { background: var(--sphp-accent); color: #fff; }
.sphp-msg-theirs { background: #eef4f5; color: var(--sphp-text); }

.sphp-widget {
    background: #fff;
    border: 1px solid var(--sphp-border);
    border-radius: var(--sphp-radius);
    padding: 1.25rem;
    height: 100%;
}
.sphp-widget-value { font-size: 1.75rem; font-weight: 700; color: var(--sphp-primary); }

/* Dark mode */
.dark body { background: #0f172a; color: #cbd5e1; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 { color: #e2e8f0; }
.dark .sphp-card, .dark .sphp-widget { background: #1e293b; border-color: #334155; }
.dark .sphp-section-alt { background: #0f172a; }
.dark .sphp-footer { background: #0b1220; border-color: #1e293b; }
.dark .sphp-header-nav.scrolled { background: #1e293b; color: #e2e8f0; }
.dark .sphp-header-nav.scrolled .sphp-nav-link { color: #e2e8f0; }
.dark .sphp-page-header { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); border-color: #334155; }
.dark .sphp-dash-topbar, .dark .sphp-dash-main { background: #0f172a; }
.dark .sphp-dashboard-sidebar { background: #1e293b; border-color: #334155 !important; }
.dark .sphp-cookie-banner { background: #1e293b; border-color: #334155; }

/* Registration wizard */
.sphp-page-header-compact { padding-bottom: clamp(32px, 4vw, 48px); }
.sphp-page-subtitle { color: var(--sphp-text); opacity: .85; max-width: 520px; margin: .75rem auto 0; font-size: 1.05rem; }
.sphp-section-compact { padding-top: clamp(32px, 5vw, 56px); }

.sphp-register-wrap { max-width: 860px; }

.sphp-register-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 .5rem;
}
.sphp-register-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
    min-width: 72px;
}
.sphp-register-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #fff;
    border: 2px solid var(--sphp-border);
    color: var(--sphp-text);
    transition: all .25s;
}
.sphp-register-step.is-active .sphp-register-step-circle {
    border-color: var(--sphp-accent);
    background: var(--sphp-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 166, 185, .35);
}
.sphp-register-step.is-done .sphp-register-step-circle {
    border-color: var(--sphp-primary);
    background: var(--sphp-primary);
    color: #fff;
}
.sphp-register-step-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--sphp-text);
    text-align: center;
}
.sphp-register-step.is-active .sphp-register-step-label { color: var(--sphp-primary); }
.sphp-register-step-line {
    flex: 1;
    height: 2px;
    background: var(--sphp-border);
    margin: 0 .25rem;
    margin-bottom: 1.5rem;
    max-width: 80px;
    transition: background .25s;
}
.sphp-register-step-line.is-done { background: var(--sphp-primary); }

.sphp-register-card { padding: clamp(24px, 4vw, 36px); }
.sphp-register-card:hover { transform: none; }
.sphp-register-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sphp-border);
    margin-bottom: .5rem;
}
.sphp-register-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--sphp-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.sphp-register-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sphp-border);
}

.sphp-btn-secondary {
    background: #fff;
    color: var(--sphp-primary);
    border: 2px solid var(--sphp-border);
    box-shadow: none;
}
.sphp-btn-secondary:hover {
    background: var(--sphp-bg);
    color: var(--sphp-primary);
    border-color: var(--sphp-accent);
    transform: translateY(-1px);
}

.sphp-input-premium:focus {
    border-color: var(--sphp-accent);
    box-shadow: 0 0 0 4px rgba(0, 166, 185, .12);
}

.sphp-package-option {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.1rem;
    border: 2px solid var(--sphp-border);
    border-radius: var(--sphp-radius);
    cursor: pointer;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fff;
}
.sphp-package-option:hover { border-color: rgba(0, 166, 185, .4); }
.sphp-package-option.is-selected {
    border-color: var(--sphp-accent);
    background: linear-gradient(180deg, rgba(0, 166, 185, .06) 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(0, 89, 99, .1);
}
.sphp-package-radio { position: absolute; opacity: 0; pointer-events: none; }
.sphp-package-name { font-weight: 700; color: var(--sphp-primary); }
.sphp-package-price { font-size: 1.15rem; font-weight: 700; color: var(--sphp-accent); }
.sphp-package-desc { font-size: .8rem; color: var(--sphp-text); opacity: .85; margin-top: .25rem; }

.sphp-package-card { padding: 2rem 1.75rem; text-align: center; }
.sphp-package-card:hover { transform: translateY(-6px); }
.sphp-package-card-badge {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: var(--sphp-bg);
    color: var(--sphp-primary);
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.sphp-package-features { text-align: left; color: var(--sphp-text); line-height: 1.9; }

.sphp-payment-grid {
    display: grid;
    gap: .75rem;
}
.sphp-payment-option {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: .15rem .75rem;
    padding: 1rem 1.15rem;
    border: 2px solid var(--sphp-border);
    border-radius: var(--sphp-radius);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fff;
}
.sphp-payment-option:hover { border-color: rgba(0, 166, 185, .35); }
.sphp-payment-option.is-selected {
    border-color: var(--sphp-accent);
    background: linear-gradient(90deg, rgba(0, 166, 185, .07) 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(0, 89, 99, .08);
}
.sphp-payment-radio { position: absolute; opacity: 0; pointer-events: none; }
.sphp-payment-icon { grid-row: 1 / 3; font-size: 1.5rem; align-self: center; }
.sphp-payment-label { font-weight: 700; color: var(--sphp-primary); }
.sphp-payment-hint { font-size: .82rem; color: var(--sphp-text); opacity: .8; }
.sphp-payment-bank-details {
    grid-column: 1 / -1;
    margin-top: .5rem;
    padding: .75rem 1rem;
    background: var(--sphp-bg);
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.6;
}

.sphp-register-summary {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
}
.sphp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .35rem;
}
.sphp-summary-total {
    font-size: 1.05rem;
    color: var(--sphp-primary);
}
.letter-spacing { letter-spacing: .06em; }

.sphp-register-success { padding: 3rem 2rem; }
.sphp-register-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sphp-accent), var(--sphp-primary));
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 166, 185, .35);
}
.sphp-alert-premium { border-radius: var(--sphp-radius); border-left: 4px solid #dc3545; }

.dark .sphp-register-card-icon,
.dark .sphp-package-option,
.dark .sphp-payment-option,
.dark .sphp-register-summary { background: #1e293b; }
.dark .sphp-package-option.is-selected,
.dark .sphp-payment-option.is-selected { background: linear-gradient(180deg, rgba(0, 166, 185, .12) 0%, #1e293b 100%); }
.dark .sphp-btn-secondary { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.dark .sphp-payment-bank-details { background: #0f172a; }
.dark .sphp-register-step-circle { background: #1e293b; border-color: #334155; }

@media (max-width: 576px) {
    .sphp-register-stepper { gap: 0; }
    .sphp-register-step-label { font-size: .7rem; }
    .sphp-register-step-line { max-width: 24px; }
    .sphp-register-actions { flex-direction: column-reverse; }
    .sphp-register-actions .sphp-btn { width: 100%; }
}

@media (max-width: 768px) {
    .sphp-nav-desktop { display: none !important; }
    .sphp-nav-mobile { display: inline-flex !important; }
    .sphp-dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }
    .sphp-dashboard-sidebar.open { transform: translateX(0); }
    .sphp-dash-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 1035;
    }
}
