/* Perksy 2.0 fintech style system */
:root {
    --brand-600: #0b6b5a;
    --brand-700: #085345;
    --brand-100: #e8f5f1;
    --surface: #f4f7fb;
    --card: #ffffff;
    --ink-900: #142230;
    --ink-700: #4f5d6c;
    --ink-500: #7b8a99;
    --line: #dfe5ec;
    --danger: #d9534f;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 24px rgba(20, 34, 48, 0.07);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, #dceeff 0%, transparent 55%),
        radial-gradient(900px 450px at 100% 0%, #e7f6f1 0%, transparent 45%),
        var(--surface);
    color: var(--ink-900);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
}

.navbar {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(20, 34, 48, 0.04);
}

.navbar-brand {
    font-size: 1.15rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    background: var(--card);
}

.card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-success {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}

.btn-outline-success {
    border-color: #5fae9f;
    color: var(--brand-700);
}

.btn-outline-success:hover {
    background-color: var(--brand-100);
    color: var(--brand-700);
    border-color: #4c9d8e;
}

.progress {
    height: 12px !important;
    border-radius: 999px;
    background: #eaf0f5;
}

.progress-bar {
    background: linear-gradient(90deg, var(--brand-600), #16a085);
    border-radius: 999px;
}

.badge {
    font-weight: 700;
    border-radius: 999px;
}

.table thead th {
    color: var(--ink-700);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
}

.table tbody td {
    vertical-align: middle;
    color: var(--ink-900);
}

.alert {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.alert-info {
    background: #ecf6ff;
    border-color: #cde5ff;
}

.nav-icon i {
    transition: transform 0.12s ease;
}

.nav-icon:active i {
    transform: translateY(-1px);
}

.wallet-hero {
    border: 1px solid #cde5dd;
    border-radius: var(--radius-lg);
    background: linear-gradient(130deg, #0e7b67 0%, #0a5f4f 75%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(11, 107, 90, 0.22);
    padding: 1rem;
    margin-bottom: 1rem;
}

.wallet-hero-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.wallet-hero-amount {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.metric-card {
    border-radius: var(--radius-md);
    padding: 0.9rem;
    height: 100%;
    border: 1px solid var(--line);
    background: #fff;
}

.metric-title {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric-value {
    margin: 0.35rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
}

footer {
    margin-top: auto;
}

footer a {
    color: #b4bfca;
}

footer a:hover {
    color: #ffffff;
}

@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.35rem;
    }

    .wallet-hero {
        padding: 1.35rem;
    }

    .wallet-hero-amount {
        font-size: 2rem;
    }
}

.screen-header {
    margin-bottom: 1rem;
}

.screen-eyebrow {
    color: var(--ink-500);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.screen-title {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.screen-subtitle {
    color: var(--ink-700);
    margin-bottom: 0;
}

.task-card {
    height: 100%;
}

.task-thumb {
    height: 160px;
    border-bottom: 1px solid var(--line);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    background: linear-gradient(160deg, #113b63 0%, #236ca3 100%);
    color: #fff;
}

.community-post {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.community-meta {
    color: var(--ink-500);
    font-size: 0.82rem;
}

.compose-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.activity-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.activity-row {
    border-bottom: 1px dashed #e4e9ef;
}

.activity-row:last-child {
    border-bottom: 0;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--ink-700);
    font-size: 0.85rem;
}

.reward-panel {
    border: 1px solid #cde5dd;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f5fffb 0%, #ecf8f4 100%);
}

.watch-progress-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #f9fbfd;
    padding: 0.9rem;
}

.auth-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.auth-card .card-header {
    background: #fff;
    color: var(--ink-900);
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--ink-700);
}

.auth-hint {
    color: var(--ink-500);
    font-size: 0.82rem;
}

.profile-hero {
    border: 1px solid #cde5dd;
    border-radius: var(--radius-lg);
    background: linear-gradient(130deg, #0e7b67 0%, #0a5f4f 75%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(11, 107, 90, 0.22);
    padding: 1rem;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-stat {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: #fff;
    text-align: center;
}

.profile-stat .label {
    color: var(--ink-500);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-stat .value {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    font-weight: 800;
}
