:root {
    --app-primary: #3157d5;
    --app-primary-dark: #2343af;
    --app-ink: #17213d;
    --app-muted: #6f7892;
    --app-surface: rgba(255, 255, 255, .94);
    --app-border: #e5e9f2;
}

body {
    min-height: 100vh;
    color: var(--app-ink);
    background: linear-gradient(135deg, #f5f7ff 0%, #eef5ff 48%, #f8fbff 100%);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.app-header { padding: 2rem 0 0; }
.app-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 0 !important;
    border-radius: 1.5rem !important;
    background: linear-gradient(120deg, #253b9f, #4776e6);
    box-shadow: 0 1rem 2.5rem rgba(49, 87, 213, .18);
}
.app-hero::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -6rem;
    top: -9rem;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.app-hero h1 { position: relative; z-index: 1; font-weight: 700; letter-spacing: -.03em; }
.app-nav {
    align-items: center;
    gap: .25rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--app-border);
}
.app-nav a { color: var(--app-muted); border-radius: .65rem; padding: .5rem .8rem; }
.app-nav a:hover, .app-nav a.active { color: var(--app-primary); background: #eaf0ff; }
.app-content { padding-top: 1.5rem; }
.app-card {
    border: 1px solid var(--app-border) !important;
    border-radius: 1.15rem !important;
    background: var(--app-surface) !important;
    box-shadow: 0 .6rem 1.5rem rgba(32, 55, 110, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-5px); border-color: #b9c8ff !important; box-shadow: 0 1rem 2rem rgba(32,55,110,.12); }
.feature { width: 3.7rem; height: 3.7rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; border-radius: 1rem !important; box-shadow: 0 .5rem 1rem rgba(49,87,213,.2); }
.app-card h2, .app-card h3 { color: var(--app-ink); }
.app-panel { max-width: 720px; margin: 0 auto; padding: 2rem; border: 1px solid var(--app-border); border-radius: 1.25rem; background: var(--app-surface); box-shadow: 0 .8rem 2rem rgba(32,55,110,.08); }
.app-panel-wide { max-width: 900px; }
.form-label { color: var(--app-ink); font-weight: 600; }
.form-control { min-height: 46px; border-radius: .7rem; border-color: #d9dfed; }
.form-control:focus { border-color: var(--app-primary) !important; box-shadow: 0 0 0 .25rem rgba(49,87,213,.13) !important; }
.input-group .form-control { border-radius: .7rem 0 0 .7rem; }
.input-group .btn { border-radius: 0 .7rem .7rem 0; }
.btn { border-radius: .7rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.btn-primary { background: var(--app-primary) !important; border-color: var(--app-primary) !important; }
.btn-primary:hover { background: var(--app-primary-dark) !important; border-color: var(--app-primary-dark) !important; }
.btn-danger { background: #e25563 !important; border-color: #e25563 !important; }
.btn-secondary { background: #f0f2f7 !important; color: #59627a !important; border-color: #dfe4ee !important; }
.alert { border: 0; border-radius: .85rem; color: inherit; }
.app-footer { color: var(--app-muted); }
.app-footer .footer-box { border: 1px solid var(--app-border); border-radius: 1rem; background: rgba(255,255,255,.7); }
@media (max-width: 576px) {
    .app-header { padding-top: 1rem; }
    .app-hero { border-radius: 1rem !important; }
    .app-hero h1 { font-size: 1.75rem; }
    .app-panel { padding: 1.25rem; }
}
