/* Shared site styles */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
    color:#333;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

header{
    position:sticky;
    top:0;
    z-index:10;
    background:#3f3f3f;
    color:white;
    padding:24px 56px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow:0 2px 12px rgba(0,0,0,0.2);
}

header h1{
    font-size:30px;
    line-height:1;
    margin:0;
}

header h1 a{
    color:white;
    text-decoration:none;
}

header .site-logo-link{
    display:inline-flex;
    align-items:center;
}

header .site-logo{
    display:block;
    height:65px;
    width:auto;
    max-width:288px;
    object-fit:contain;
}

.header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.nav{
    display:flex;
    align-items:center;
    gap:8px 22px;
}

.nav-apps{
    display:flex;
    align-items:center;
    gap:10px;
    margin-right:6px;
}

.nav a.nav-link{
    color:#eee;
    text-decoration:none;
    font-size:17px;
    font-weight:700;
    letter-spacing:0.08em;
}

.nav a.nav-link:hover,
.nav a.nav-link.active{
    color:#fff;
    text-decoration:underline;
    text-underline-offset:6px;
}

.app-btn{
    display:inline-block;
    background:rgba(20,20,20,0.38);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    color:rgba(255,255,255,0.95);
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    letter-spacing:0.03em;
    padding:10px 16px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.28);
    box-shadow:0 8px 20px rgba(0,0,0,0.22);
    transition:background .2s, transform .2s, box-shadow .2s;
    white-space:nowrap;
}

.app-btn.android{
    background:rgba(156, 102, 58, 0.22);
    border-color:rgba(196, 148, 98, 0.35);
}

.app-btn.ios{
    background:rgba(90, 122, 168, 0.22);
    border-color:rgba(148, 174, 210, 0.35);
}

.app-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(0,0,0,0.3);
}

.app-btn.android:hover{
    background:rgba(156, 102, 58, 0.32);
}

.app-btn.ios:hover{
    background:rgba(90, 122, 168, 0.32);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:0;
    border-radius:10px;
    background:rgba(255,255,255,0.08);
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
}

.menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    background:#fff;
    border-radius:2px;
    transition:transform .2s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2){
    opacity:0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.mobile-menu{
    display:none;
}

.page-shell{
    flex:1;
    width:100%;
    position:relative;
    z-index:2;
}

.page-wrap{
    max-width:720px;
    margin:0 auto;
    padding:48px 24px 70px;
}

.page-wrap.wide{
    max-width:960px;
}

.panel{
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 28px rgba(0,0,0,0.08);
    padding:36px 32px;
}

.panel h2{
    font-size:28px;
    margin-bottom:12px;
    color:#2a2a2a;
}

.panel-title-divider{
    height:1px;
    background:#d7d7d7;
    margin:0 0 18px;
}

.panel .lead{
    color:#666;
    line-height:1.6;
    margin-bottom:28px;
    font-size:16px;
}

.status-panel{
    text-align:center;
}

.status-panel .lead{
    margin-bottom:0;
}

.status-icon{
    width:66px;
    height:66px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;
    border-radius:50%;
    font-size:32px;
    font-weight:700;
    line-height:1;
}

.status-icon.is-success{
    background:#f5ebe3;
    color:#b45309;
}

.status-icon.is-error{
    background:#fdecec;
    color:#8f1f1f;
}

.status-icon.is-neutral{
    background:#f0f0f0;
    color:#666;
}

.status-meta{
    margin-top:14px;
    font-weight:700;
    color:#2a2a2a;
}

.form-grid{
    display:grid;
    gap:16px;
}

.form-grid.two{
    grid-template-columns:1fr 1fr;
    gap:16px;
}

label{
    display:block;
    font-size:13px;
    font-weight:700;
    letter-spacing:0.04em;
    color:#555;
    margin-bottom:7px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea{
    width:100%;
    border:1px solid #d5d5d5;
    border-radius:10px;
    padding:13px 14px;
    font-size:15px;
    background:#fafafa;
    color:#333;
    outline:none;
    transition:border-color .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#888;
    box-shadow:0 0 0 3px rgba(0,0,0,0.06);
    background:#fff;
}

textarea{
    min-height:140px;
    resize:vertical;
}

.field-error{
    color:#b42318;
    font-size:13px;
    margin-top:6px;
}

.alert{
    border-radius:10px;
    padding:14px 16px;
    margin-bottom:20px;
    font-size:14px;
    line-height:1.5;
}

.alert-success{
    background:#f0f0f0;
    color:#2a2a2a;
    border:1px solid #d8d8d8;
}

.alert-error{
    background:#fdecec;
    color:#8f1f1f;
    border:1px solid #f3c6c6;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:10px;
    padding:14px 24px;
    font-size:15px;
    font-weight:700;
    letter-spacing:0.03em;
    cursor:pointer;
    text-decoration:none;
    transition:background .2s, transform .2s, box-shadow .2s;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{
    background:#3f3f3f;
    color:#fff;
    box-shadow:0 8px 18px rgba(0,0,0,0.16);
}

.btn-primary:hover{
    background:#2a2a2a;
}

.btn-secondary{
    background:#e8e8e8;
    color:#333;
}

.btn-secondary:hover{
    background:#ddd;
}

.btn-block{
    width:100%;
}

.btn:disabled,
.btn:disabled:hover{
    opacity:0.65;
    cursor:not-allowed;
    transform:none;
}

.form-actions{
    display:flex;
    gap:12px;
    justify-content:flex-end;
    margin-top:24px;
    flex-wrap:wrap;
}

.muted-link{
    color:#666;
    font-size:14px;
}

.muted-link a{
    color:#2a2a2a;
    font-weight:700;
}

footer.site-footer{
    background:#333;
    color:#ddd;
    text-align:center;
    padding:35px;
    position:relative;
    z-index:2;
}

.footer-legal{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 18px;
    margin-bottom:14px;
}

.footer-legal a{
    color:#ddd;
    text-decoration:none;
    font-size:13px;
}

.footer-legal a:hover{
    color:#fff;
    text-decoration:underline;
}

.footer-copy{
    color:#ddd;
}

.legal-nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
    margin:0 0 32px;
    padding-bottom:18px;
    border-bottom:1px solid #e5e5e5;
}

.legal-nav a{
    color:#666;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.legal-nav a:hover,
.legal-nav a.active{
    color:#b45309;
}

.legal-doc h2{
    margin-bottom:8px;
}

.legal-doc .panel-title-divider{
    margin:0 0 16px;
}

.legal-doc .legal-meta{
    color:#888;
    font-size:13px;
    margin:0 0 22px;
    line-height:1.5;
}

.legal-doc .lead{
    margin-bottom:32px;
    line-height:1.7;
}

.legal-doc h3{
    margin:36px 0 14px;
    padding-top:4px;
    font-size:18px;
    color:#2a2a2a;
    line-height:1.35;
}

.legal-doc h3:first-of-type{
    margin-top:8px;
}

.legal-doc p{
    color:#444;
    line-height:1.75;
    font-size:15px;
    margin:0 0 16px;
}

.legal-doc ul{
    margin:4px 0 20px 22px;
    padding:0;
}

.legal-doc li{
    color:#444;
    line-height:1.75;
    font-size:15px;
    margin:0 0 12px;
}

.legal-doc li:last-child{
    margin-bottom:0;
}

.legal-doc a{
    color:#b45309;
}

.legal-doc .legal-note{
    margin-top:40px;
    padding:16px 18px;
    background:#f7f7f7;
    border-radius:10px;
    color:#666;
    font-size:13px;
    line-height:1.65;
}

@media (max-width: 900px){
    header{
        padding:20px 24px;
        flex-wrap:nowrap;
    }

    header h1{
        font-size:26px;
    }

    header .site-logo{
        height:54px;
        max-width:240px;
    }

    .nav-desktop{
        display:none;
    }

    .menu-toggle{
        display:flex;
    }

    .mobile-menu{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#3f3f3f;
        padding:10px 18px 18px;
        box-shadow:0 10px 24px rgba(0,0,0,0.28);
        border-top:1px solid rgba(255,255,255,0.08);
    }

    .mobile-menu.open{
        display:block;
    }

    .mobile-menu a{
        display:block;
        color:#eee;
        text-decoration:none;
        font-size:17px;
        font-weight:700;
        letter-spacing:0.08em;
        padding:14px 8px;
        border-bottom:1px solid rgba(255,255,255,0.08);
    }

    .mobile-menu a:last-child{
        border-bottom:0;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active{
        color:#fff;
    }

    .page-wrap{
        padding:28px 16px 50px;
    }

    .panel{
        padding:26px 18px;
    }

    .panel h2{
        font-size:24px;
    }

    .form-grid.two{
        grid-template-columns:1fr;
    }

    .form-actions{
        flex-direction:column-reverse;
    }

    .form-actions .btn{
        width:100%;
    }
}
