/*
Theme Name: notex
Theme URI: https://notex.su
Author: notex team
Description: notex.su — iOS 18+ Design (High Precision Mockup Match)
Version: 1.2.0
Text Domain: notex
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #000000;
    --accent: #007aff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    /* Radii - Modern iOS large radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-pill: 500px;
    --radius-card: 28px;
    --t-fast: 0.2s ease;

    /* Navbar */
    --nav-h: 60px;
    --nav-top: 16px;
    --nav-bg: rgba(255, 255, 255, 0.08);
    --nav-blur: blur(20px) saturate(180%);
    --nav-border: 1px solid rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.ntx-nav {
    position: fixed;
    top: var(--nav-top);
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 32px));
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    border-radius: var(--radius-lg);
    border: var(--nav-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    filter: var(--glass-svg-filter, none);
}

.ntx-nav-logo {
    display: flex;
    align-items: center;
}

.ntx-nav-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.ntx-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    cursor: pointer;
    border: none;
}

.btn-lg {
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
    border-radius: 50px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #0084ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn:active {
    transform: translateY(0) !important;
    transition-duration: 0.08s !important;
    box-shadow: none !important;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* HERO CARD */
.ntx-hero {
    position: relative;
    width: min(1200px, calc(100vw - 32px));
    height: clamp(500px, 70vh, 750px);
    margin: 100px auto 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ntx-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.ntx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
}

.ntx-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ntx-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.ntx-hero-title-wrap {
    display: flex;
    flex-direction: column;
}

.ntx-hero-label {
    font-size: 24px;
    color: #fff;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: -5px;
}

.ntx-hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -2px;
}

.ntx-hero-actions {
    display: flex;
    gap: 12px;
}

/* TABS SECTION - Clean Grid */
.ntx-tabs-section {
    width: min(1200px, calc(100vw - 32px));
    margin: 40px auto;
}

.ntx-tabs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.ntx-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
    width: fit-content;
}

.ntx-tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: 0.2s;
    border: none;
    background: transparent;
}

.ntx-tab-btn.active {
    background: var(--accent);
    color: #fff;
}

.ntx-tab-content {
    display: none;
}

.ntx-tab-content.active {
    display: block;
}

.ntx-tab-content-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.ntx-tab-content-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ntx-tab-content-text span.blue {
    color: var(--accent);
    font-weight: 600;
}

.ntx-tab-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ntx-tab-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
}

.ntx-tab-feature-list li::before {
    content: '•';
    color: #fff;
    font-weight: 800;
}

.ntx-tabs-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    position: relative;
}

.tab-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: 0.4s;
}

.tab-img.active {
    opacity: 1;
}

/* STATS BAR - Single Container */
.ntx-stats-wrap {
    width: min(1200px, calc(100vw - 32px));
    margin: 40px auto;
}

.ntx-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0;
}

.ntx-stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ntx-stat-item:last-child {
    border: none;
}

.ntx-stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.ntx-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* PRICING */
.ntx-pricing-section {
    width: min(1200px, calc(100vw - 32px));
    margin: 80px auto;
}

.ntx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    /* Make pricing grid wider */
}

.ntx-plan-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ntx-plan-card.featured {
    background: #000;
    border-color: var(--accent);
}

.ntx-plan-card.blue {
    background: var(--accent);
    border: none;
}

.ntx-plan-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.ntx-plan-card.blue .ntx-plan-badge {
    color: rgba(255, 255, 255, 0.7);
}

.ntx-plan-name {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.ntx-plan-name.blue-text {
    color: var(--accent);
}

.ntx-plan-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ntx-plan-card.blue .ntx-plan-desc {
    color: #fff;
}

.ntx-plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.ntx-plan-features li {
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ntx-plan-features li::before {
    content: '•';
    color: var(--accent);
    font-weight: 900;
}

.ntx-plan-card.blue .ntx-plan-features li::before {
    color: #fff;
}

.btn-plan {
    width: 100%;
    border-radius: 30px;
    font-size: 14px;
}

.btn-white {
    background: #fff;
    color: #007aff;
}

@media (max-width: 1000px) {

    .ntx-tabs-container,
    .ntx-pricing-grid,
    .ntx-stats,
    .ntx-form-grid {
        grid-template-columns: 1fr;
    }

    .ntx-hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ntx-hero-title {
        font-size: 48px;
    }
}

/* ==============================
   FOOTER STYLES
   ============================== */
.ntx-footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ntx-footer-inner {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.ntx-footer-brand {
    display: block;
    margin-bottom: 20px;
}

.ntx-footer-brand a {
    display: inline-flex;
    align-items: center;
}

.ntx-footer-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.ntx-footer-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 24px;
}

.ntx-footer-legal {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.ntx-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.ntx-footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--t-fast);
}

.ntx-footer-links a:hover {
    color: #fff;
}

.ntx-footer-bottom {
    width: min(1200px, calc(100vw - 32px));
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ==============================
   INTERNAL PAGES (Donate/Apply)
   ============================== */
.ntx-form-section {
    padding-top: calc(var(--nav-h) + var(--nav-top) + 80px);
    /* Increased from 40px to 80px for more space */
    padding-bottom: 100px;
}

.ntx-form-wrap {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
}

.ntx-page-eyebrow {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ntx-page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.ntx-page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    line-height: 1.6;
}

.ntx-donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    width: 100%;
}

.ntx-form-wrap-full {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
}

.ntx-donate-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 32px;
    cursor: pointer;
    transition: all var(--t-fast);
    position: relative;
}

.ntx-donate-card.selected {
    border-color: var(--accent);
    background: #0d0d0d;
}

.ntx-donate-check {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* exact 16px from iOS 26 spec */
    border-radius: 50%;
}

.ntx-donate-card.selected .ntx-donate-check {
    background: var(--accent);
    border-color: var(--accent);
}

.ntx-form-card {
    border-radius: var(--radius-card);
    padding: 40px;
    transition: all var(--t-fast);
}

.ntx-form-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.liquid-glass-strong {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ntx-field {
    margin-bottom: 24px;
}

.ntx-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* ==============================
   LEGAL PAGES
   ============================== */
.ntx-legal-section {
    padding-top: calc(var(--nav-h) + var(--nav-top) + 80px);
    padding-bottom: 120px;
    width: min(800px, calc(100vw - 32px));
    margin: 0 auto;
}

.ntx-legal-content h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.legal-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ntx-legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--accent);
}

.ntx-legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ntx-legal-content ul {
    margin: 16px 0 24px 24px;
    list-style: none;
}

.ntx-legal-content li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.ntx-legal-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

.ntx-legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.ntx-legal-content a:hover {
    text-decoration: underline;
}

.ntx-legal-content strong {
    color: #fff;
}

.ntx-legal-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ntx-legal-content th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ntx-legal-content td {
    padding: 16px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
    transition: all 0.2s ease;
}

.ntx-legal-content tr:last-child td {
    border-bottom: none;
}

.ntx-legal-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

@media (max-width: 768px) {
    .ntx-legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 14px;
    }
}

.ntx-input,
textarea.ntx-input,
select.ntx-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all var(--t-fast);
}

select.ntx-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.ntx-input option {
    background: #111;
    color: #fff;
}

textarea.ntx-input {
    height: auto;
    padding: 16px;
    min-height: 120px;
    resize: vertical;
}

.ntx-input:focus,
textarea.ntx-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.ntx-alert {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.ntx-alert-error {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

.ntx-alert-success {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.2);
}

/* Application Form specific */
.ntx-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.ntx-form-card-wide {
    grid-column: 1 / -1;
}

.ntx-form-card-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}