/* =========================================================
   Shared components
   Cards, buttons, breadcrumbs, progress, chips
   ========================================================= */

.task-card,
.number-card,
.profile-card,
.exam-task-item,
.exam-result-box,
.exam-result-item,
.task-main-card,
.side-card,
.task-item {
    background: rgba(30, 41, 59, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.task-card,
.profile-card {
    padding: 42px;
    border-radius: 28px;
}

.open-task-btn,
.open-number-btn,
.daily-task-btn,
.exam-submit-btn,
.hero-primary-btn,
button,
.solve-btn {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;

    border: none;
    border-radius: 16px;

    padding: 14px 22px;

    font-weight: 700;

    transition: 0.3s;
    cursor: pointer;

    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
}

.open-task-btn:hover,
.open-number-btn:hover,
.daily-task-btn:hover,
.exam-submit-btn:hover,
.hero-primary-btn:hover,
button:hover,
.solve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(56, 189, 248, 0.34);
}

.exam-submit-wrap {
    margin-top: 36px;

    display: flex;
    justify-content: center;
}

.exam-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 280px;
    height: 64px;

    padding: 0 34px;

    border-radius: 20px;

    background: linear-gradient(135deg, #38bdf8, #0ea5e9);

    color: #020617;

    font-size: 18px;
    font-weight: 900;

    border: none;
    cursor: pointer;

    box-shadow:
        0 18px 40px rgba(56, 189, 248, 0.28);

    transition: 0.3s;
}

.exam-submit-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 24px 50px rgba(56, 189, 248, 0.38);
}

/* Breadcrumbs / back buttons */

.breadcrumbs {
    margin-bottom: 25px;

    color: #94a3b8;

    font-size: 15px;
}

.breadcrumbs a {
    color: #38bdf8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    margin: 0 6px;
}

.back-btn,
.back-to-topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    background: #0f172a;
    color: #38bdf8;

    padding: 12px 18px;

    border-radius: 14px;

    text-decoration: none;

    border: 1px solid #334155;

    transition: 0.3s;
}

.back-btn:hover,
.back-to-topic-btn:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: white;
}

/* Progress */

.progress-box {
    margin-bottom: 30px;
}

.progress-text {
    margin-bottom: 10px;

    color: #cbd5e1;

    font-weight: 600;
}

.progress-bar,
.number-progress-bar {
    width: 100%;

    background: #1e293b;

    border-radius: 999px;
    overflow: hidden;

    border: 1px solid #334155;
}

.progress-bar {
    height: 14px;
}

.progress-fill,
.number-progress-fill {
    height: 100%;

    background: linear-gradient(90deg, #22c55e, #38bdf8);

    border-radius: 999px;

    transition: 0.3s;
}

/* Filters */

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin: 24px 0 34px;
}

.filters-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #cbd5e1;

    text-decoration: none;
    font-weight: 600;

    transition: 0.3s;
}

.filters-row a:hover {
    border-color: #38bdf8;
    color: white;
    background: rgba(56, 189, 248, 0.10);

    transform: translateY(-2px);
}

.filters-row a.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    border-color: transparent;

    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

/* Chips */

.task-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 20px;
}

.task-chips-row .task-number-chip {
    margin-bottom: 0;
}

.task-number-chip {
    display: inline-block;

    margin-bottom: 20px;
    padding: 9px 15px;

    border-radius: 999px;

    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);

    color: #38bdf8;

    font-size: 15px;
    font-weight: 800;
}

.task-id-chip,
.search-task-id {
    display: inline-block;

    padding: 9px 15px;

    border-radius: 999px;

    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);

    color: #cbd5e1;

    font-size: 15px;
    font-weight: 800;
}

.search-task-id {
    padding: 6px 12px;

    font-size: 13px;
    font-weight: 700;
}

/* File and notices */

.download-file-btn {
    display: inline-block;

    margin: 10px 0 25px;
    padding: 12px 20px;

    border-radius: 10px;

    background-color: #38bdf8;

    color: black;

    text-decoration: none;
    font-weight: bold;
}

.download-file-btn:hover {
    background-color: #0ea5e9;
}

.file-check-note {
    margin-top: 20px;
    padding: 18px;

    background-color: #0f172a;

    border-left: 4px solid #38bdf8;
    border-radius: 10px;

    font-weight: bold;
}

.manual-task-notice {
    margin-top: 20px;
    padding: 16px;

    border-radius: 14px;

    background: #0f172a;
    border: 1px solid #38bdf8;

    color: #e2e8f0;

    font-size: 16px;
    line-height: 1.5;
}

/* Search item helpers */

.search-task-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 18px;
}

.search-task-top h2 {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .tasks-grid,
    .directions-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.payment-success {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 20px 56px;
}

.payment-success__card {
    position: relative;
    width: 100%;
    max-width: 820px;
    padding: 52px 46px;
    border-radius: 34px;
    text-align: center;

    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));

    border: 1px solid rgba(125, 211, 252, 0.28);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.42),
        0 0 60px rgba(56, 189, 248, 0.12);

    overflow: hidden;
}

.payment-success__card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        linear-gradient(120deg, transparent, rgba(125, 211, 252, 0.18), transparent);
    pointer-events: none;
}

.payment-success__icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(103, 232, 249, 0.95));

    color: #02131f;
    font-size: 34px;
    font-weight: 900;

    box-shadow:
        0 18px 40px rgba(14, 165, 233, 0.28),
        0 0 40px rgba(103, 232, 249, 0.18);
}

.payment-success__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.34);

    color: #7dd3fc;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.payment-success h1 {
    position: relative;
    margin: 0 0 16px;

    color: #f8fafc;

    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.payment-success p {
    position: relative;
    max-width: 680px;
    margin: 0 auto;

    color: #cbd5e1;

    font-size: 18px;
    line-height: 1.7;
}

.payment-success__date {
    position: relative;
    width: fit-content;
    margin: 26px auto 0;
    padding: 14px 18px;

    border-radius: 18px;

    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.28);

    color: #bae6fd;

    font-size: 16px;
    font-weight: 800;
}

.payment-success__actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;

    margin-top: 34px;
}

.payment-success__primary,
.payment-success__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 24px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;

    transition: 0.3s;
}

.payment-success__primary {
    background: linear-gradient(135deg, #0ea5e9, #67e8f9);
    color: #02131f;

    box-shadow:
        0 18px 42px rgba(14, 165, 233, 0.28);
}

.payment-success__secondary {
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;

    border: 1px solid rgba(148, 163, 184, 0.26);
}

.payment-success__primary:hover,
.payment-success__secondary:hover {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .payment-success {
        padding: 36px 14px;
    }

    .payment-success__card {
        padding: 36px 22px;
        border-radius: 26px;
    }

    .payment-success p {
        font-size: 16px;
    }

    .payment-success__actions {
        flex-direction: column;
    }

    .payment-success__primary,
    .payment-success__secondary {
        width: 100%;
    }
}

