/* ============================================================
   SafeDeal — Global Styles (Binetex-inspired redesign)
   ============================================================ */

/* ---------- Reset & Variables ---------- */
:root {
    --green: #43A047;
    --green-hover: #388E3C;
    --green-light: #E8F5E9;
    --orange: #F57C00;
    --orange-light: #FFF3E0;
    --blue: #1976D2;
    --blue-light: #E3F2FD;
    --red: #E53935;
    --red-light: #FFEBEE;
    --bg: #F5F6F8;
    --white: #FFFFFF;
    --border: #E8E8E8;
    --border-dark: #D0D0D0;
    --text: #1A1A1A;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    padding: 32px 0 60px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--text-secondary); font-size: 16px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
    padding: 16px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* ---------- Header ---------- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i { font-size: 24px; }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 16px;
}

.nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav a:hover { color: var(--green); }

.nav a.active {
    color: var(--green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.header-icon:hover {
    background: var(--bg);
    color: var(--text);
}


.header-icon.has-unread::after { display: none; }


.header-notifications { position: relative; }
.header-notifications-dropdown { display:none; position:absolute; right:0; top:100%; width:340px; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow: var(--shadow-md); z-index:200; }
.header-notifications:hover .header-notifications-dropdown { display:block; }
.header-notifications-head { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--border); }
.header-notifications-readall { font-size:12px; color:var(--green); }
.header-notifications-list { max-height:360px; overflow:auto; }
.header-notification-item { display:block; padding:10px 12px; border-bottom:1px solid #f1f5f9; color:inherit; }
.header-notification-item:hover { background:#f8fafc; color:inherit; }
.header-notification-item.unread { background:#f0f9ff; }
.header-notification-item .title { font-weight:700; font-size:13px; margin-bottom:2px; }
.header-notification-item .text { font-size:12px; color:var(--text-secondary); line-height:1.35; }
.header-notification-item .meta { font-size:11px; color:var(--text-muted); margin-top:4px; }
.header-notifications-empty { padding:16px 12px; color:var(--text-muted); font-size:13px; }

.header-icon .badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.user-menu {
    position: relative;
    margin-left: 8px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.user-menu-btn:hover {
    border-color: var(--border-dark);
    background: var(--bg);
}

.user-menu-btn .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.user-menu-btn .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-btn span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn i.fa-chevron-down {
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    overflow: hidden;
    z-index: 100;
}

.user-menu:hover .user-menu-dropdown { display: block; }
.user-menu:hover .user-menu-btn i.fa-chevron-down { transform: rotate(180deg); }

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.user-menu-dropdown a:hover { background: var(--bg); color: var(--green); }
.user-menu-dropdown a i { width: 16px; color: var(--text-secondary); font-size: 15px; }
.user-menu-dropdown a:hover i { color: var(--green); }

.user-menu-dropdown hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--border-dark);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-outline:hover {
    background: var(--green);
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover { background: #C62828; border-color: #C62828; color: #fff; }

.btn-warning {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}
.btn-warning:hover { background: #E65100; border-color: #E65100; color: #fff; }

.btn-success {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 10px; }

.btn i { font-size: 14px; }

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(67,160,71,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group { flex: 1; }
.form-group.flex-1 { flex: 1; }

.input-group {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    cursor: pointer;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--green-light);
    color: #2E7D32;
    border-color: #C8E6C9;
}

.alert-danger, .alert-error {
    background: var(--red-light);
    color: #C62828;
    border-color: #FFCDD2;
}

.alert-warning {
    background: var(--orange-light);
    color: #E65100;
    border-color: #FFE0B2;
}

.alert-info {
    background: var(--blue-light);
    color: #1565C0;
    border-color: #BBDEFB;
}

/* ---------- Status Badges ---------- */
.deal-status, .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.status-pending, .status-created {
    background: var(--orange-light);
    color: var(--orange);
}

.status-info, .status-accepted, .status-paid {
    background: var(--blue-light);
    color: var(--blue);
}

.status-success, .status-completed {
    background: var(--green-light);
    color: var(--green);
}

.status-warning, .status-in_progress {
    background: #FFF8E1;
    color: #F9A825;
}

.status-error, .status-cancelled, .status-disputed {
    background: var(--red-light);
    color: var(--red);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.hero-features .feature i { font-size: 22px; }

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero .btn-primary {
    background: #fff;
    color: var(--green);
    border-color: #fff;
    padding: 14px 32px;
    font-size: 15px;
}

.hero .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--green-hover);
}

.hero .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    padding: 14px 32px;
    font-size: 15px;
}

.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* ---------- Sections ---------- */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

/* How It Works / Steps */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.step {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-icon {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Advantages */
.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage-card {
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--green);
}

.advantage-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Categories */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #43A047, #2E7D32);
    color: #fff;
}

.cta-content { text-align: center; }

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: #fff;
    color: var(--green);
    border-color: #fff;
    padding: 14px 36px;
    font-size: 15px;
}

.cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

/* ---------- Footer ---------- */
.footer {
    background: #1E293B;
    color: #CBD5E1;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
    color: #94A3B8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover { color: #fff; }

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #94A3B8;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--green);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #64748B;
    font-size: 13px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.auth-box {
    max-width: 440px;
    width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.auth-box h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form .form-group { margin-bottom: 16px; }

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(67,160,71,0.12);
}

.auth-form small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a { color: var(--green); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Page Headers ---------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ---------- Create Deal Page ---------- */
.create-deal-page {
    padding: 32px 0 60px;
}

.create-deal-page h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-section {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.form-section h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.section-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.deal-type-selector,
.role-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.deal-type-option,
.role-option,
.category-option {
    flex: 1;
    max-width: 240px;
    padding: 24px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.deal-type-option:hover,
.role-option:hover,
.category-option:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.deal-type-option.selected,
.role-option.selected,
.category-option.selected {
    border-color: var(--green);
    background: var(--green-light);
}

.deal-type-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--green);
}

.deal-type-option h3,
.role-option h3,
.category-option h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.deal-type-option p,
.role-option p,
.category-option p {
    font-size: 13px;
    color: var(--text-secondary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-option {
    max-width: none;
    padding: 20px 12px;
}

/* ---------- Deal Details Form ---------- */
.preview-upload {
    width: 180px;
}

.preview-label {
    display: block;
    width: 100%;
    height: 140px;
    cursor: pointer;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: var(--transition);
}

.preview-placeholder:hover {
    border-color: var(--green);
    color: var(--green);
}

.preview-placeholder i { font-size: 36px; margin-bottom: 8px; }

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.file-upload-area { margin-bottom: 20px; }

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.file-upload-label i {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 12px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.file-item i { font-size: 20px; color: var(--green); }

.file-info { flex: 1; }
.file-name { display: block; font-weight: 500; font-size: 14px; }
.file-meta, .file-size { display: block; font-size: 12px; color: var(--text-muted); }

.remove-file {
    padding: 6px 12px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.remove-file:hover { background: #C62828; }

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

/* ---------- Deal Steps Indicator ---------- */
.deal-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: relative;
}

.deal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.deal-step::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 3px;
    background: var(--border);
    z-index: -1;
}

.deal-step:last-child::after { display: none; }

.deal-step.completed::after { background: var(--green); }

.deal-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    border: 3px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: var(--transition);
}

.deal-step.completed .deal-step-circle {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.deal-step.active .deal-step-circle {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(245,124,0,0.15);
}

.deal-step.error .deal-step-circle {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.deal-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    max-width: 100px;
    line-height: 1.3;
}

.deal-step.completed .deal-step-label { color: var(--green); }
.deal-step.active .deal-step-label { color: var(--orange); font-weight: 600; }
.deal-step.error .deal-step-label { color: var(--red); }

/* ---------- Deal Page ---------- */
.deal-page {
    padding: 32px 0 60px;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.deal-number h1 {
    display: inline;
    font-size: 24px;
    font-weight: 700;
    margin-right: 12px;
}

.deal-actions {
    display: flex;
    gap: 8px;
}

.deal-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.deal-card {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deal-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.deal-card h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.deal-card h3 i { color: var(--text-secondary); }

.deal-preview img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.deal-category { margin-bottom: 16px; }

.deal-category span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.deal-description {
    padding: 12px 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 14px;
}

.share-link-section { margin-top: 16px; }

.share-link-input {
    display: flex;
    gap: 8px;
}

.share-link-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
}

/* Sidebar info */
.deal-info-row, .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.deal-info-row:last-child, .info-item:last-child { border-bottom: none; }

.deal-info-row .label, .info-item .label { color: var(--text-secondary); }
.deal-info-row .value, .info-item .value { font-weight: 600; color: var(--text); }

/* Participants */
.participants {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.participant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.participant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-avatar i {
    font-size: 48px;
    color: var(--text-muted);
}

.participant-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.participant-role {
    display: inline-block;
    padding: 2px 8px;
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.participant-rating {
    color: #F9A825;
    font-size: 13px;
}

.participant-pending { opacity: 0.5; }

/* ---------- Dashboard ---------- */
.dashboard-page {
    padding: 32px 0 60px;
}

.dashboard-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deal-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.deal-item:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.deal-item-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-item-image i {
    font-size: 24px;
    color: var(--text-muted);
}

.deal-item-info {
    flex: 1;
    min-width: 0;
}

.deal-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.deal-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.deal-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deal-item-amount {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 16px;
}

.deal-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}



.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ---------- Profile Page ---------- */
.profile-page {
    padding: 32px 0 60px;
}

.profile-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-sidebar .card {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar i {
    font-size: 100px;
    color: var(--text-muted);
}

.profile-username {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-rating {
    color: #F9A825;
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-info-list {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-info-item i {
    width: 16px;
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.profile-stat {
    text-align: center;
}

.profile-stat .number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.profile-stat .label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Reviews */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar i { font-size: 40px; color: var(--text-muted); }

.review-author { font-weight: 600; font-size: 14px; }

.review-rating { color: #F9A825; font-size: 14px; }

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Settings Page ---------- */
.settings-page {
    padding: 32px 0 60px;
}

.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.settings-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -1px;
}

.settings-tab:hover { color: var(--green); }

.settings-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.settings-content { max-width: 640px; }

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview i {
    font-size: 80px;
    color: var(--text-muted);
}

/* ---------- Balance Page ---------- */
.balance-page {
    padding: 32px 0 60px;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.balance-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.balance-card .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.balance-card .label {
    font-size: 13px;
    color: var(--text-muted);
}

.balance-card.main {
    border-color: var(--green);
}

.balance-card.main .amount { color: var(--green); }

.balance-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.transaction-item:last-child { border-bottom: none; }

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.transaction-icon.incoming {
    background: var(--green-light);
    color: var(--green);
}

.transaction-icon.outgoing {
    background: var(--red-light);
    color: var(--red);
}

.transaction-info { flex: 1; }
.transaction-info .title { font-weight: 500; font-size: 14px; }
.transaction-info .desc { font-size: 13px; color: var(--text-muted); }

.transaction-amount { font-weight: 600; white-space: nowrap; }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: var(--red); }

.transaction-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---------- Chat Page ---------- */
.chat-page {
    display: flex;
    height: calc(100vh - 64px);
    background: var(--white);
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
    background: var(--white);
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.chat-list-item:hover { background: var(--bg); }
.chat-list-item.active { background: var(--green-light); border-left: 3px solid var(--green); }

.chat-list-info { flex: 1; min-width: 0; }

.chat-list-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

.chat-header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-header-meta { font-size: 13px; color: var(--text-muted); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.message.own {
    align-self: flex-end;
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.other {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
}

.message.own .message-time { text-align: right; }

.chat-input {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--white);
    display: flex;
    gap: 12px;
}

.chat-input textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    resize: none;
    max-height: 100px;
    transition: var(--transition);
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--green);
}

.chat-input .btn {
    align-self: flex-end;
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.chat-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--border);
}

/* ---------- Payment Page ---------- */
.payment-page {
    padding: 48px 0;
}

.payment-box {
    max-width: 560px;
    margin: 0 auto;
}

.payment-box h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.deal-summary {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.deal-summary h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payment-details {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.detail-row .label { color: var(--text-secondary); }
.detail-row .value { font-weight: 500; }

.detail-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.detail-row.total .value { color: var(--green); }

.payment-methods {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.payment-methods h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-item:hover { border-color: var(--green); }
.payment-method-item:has(input:checked) { border-color: var(--green); background: var(--green-light); }

.payment-method-item input[type="radio"] { display: none; }

.method-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-info strong { display: block; font-size: 15px; margin-bottom: 2px; }
.method-info span { font-size: 13px; color: var(--text-muted); }

.payment-security {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-security i { color: var(--green); font-size: 20px; }
.payment-security p { margin: 0; color: var(--text-secondary); font-size: 13px; }

/* ---------- Payment Result ---------- */
.payment-result-page {
    padding: 60px 0;
}

.payment-result {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
}

.payment-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.payment-result.success .payment-icon { color: var(--green); }
.payment-result.error .payment-icon { color: var(--red); }

.payment-result h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-result > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.payment-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.info-block {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.info-block h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block ul li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Edit Deal ---------- */
.edit-deal-page {
    padding: 32px 0 60px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .deal-content,
    .two-col { grid-template-columns: 1fr; }

    .profile-content { grid-template-columns: 1fr; }

    .balance-cards { grid-template-columns: repeat(2, 1fr); }
    .balance-grid { grid-template-columns: 1fr; }

    .steps { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-content { gap: 16px; }

    .nav { display: none; }
    .mobile-toggle { display: block; }

    .hero-content h1 { font-size: 30px; }
    .hero-features { flex-direction: column; gap: 12px; align-items: center; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section-title { font-size: 24px; }

    .steps { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-content { grid-template-columns: 1fr; }

    .form-row { flex-direction: column; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .deal-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .preview-upload { width: 100%; }

    .balance-cards { grid-template-columns: 1fr 1fr; }

    .deal-type-selector, .role-selector { flex-direction: column; align-items: center; }
    .deal-type-option, .role-option { max-width: 100%; }

    /* Chat mobile */
    .chat-page { flex-direction: column; height: auto; min-height: calc(100vh - 64px); }
    .chat-sidebar { width: 100%; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); }
    .chat-main { min-height: 60vh; }
    .chat-messages { min-height: 300px; }

    .payment-box { padding: 0 12px; }
    .auth-box { padding: 28px 20px; }

    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .page-header .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 48px 0; }
    .hero-content h1 { font-size: 26px; }
    .steps { grid-template-columns: 1fr; }
    .balance-cards { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }

    .deal-item { flex-direction: column; align-items: flex-start; }
    .deal-item-image { width: 100%; height: 120px; }
    .deal-item-info { width: 100%; min-width: 0; }
    .deal-item-title { white-space: normal; word-break: break-word; }
    .deal-item-amount { padding: 0; }
    .deal-item-actions { width: 100%; justify-content: space-between; }

    .dashboard-filters { flex-wrap: wrap; gap: 6px; }
    .filter-btn { font-size: 12px; padding: 6px 12px; }
}

/* ===== Account redesign ===== */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-top: 16px; align-items: start; }
.account-sidebar.card { padding: 16px; }
.account-user { font-weight: 700; font-size: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.account-nav-link { display:flex; gap:10px; align-items:center; color: var(--text-secondary); padding: 10px 8px; border-radius: 8px; }
.account-nav-link:hover { background: #f2f4f7; color: var(--text); }
.account-nav-link.active { background: #e8f5e9; color: var(--green); font-weight: 600; }
.account-nav-link.logout { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.account-main > h1, .account-main > h2 { margin-bottom: 16px; }

.footer { background: #f5f6f8; color: #64748B; border-top: 1px solid var(--border); padding: 36px 0 16px; }
.footer-content { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 20px; }
.footer-section h4 { color: #0f172a; margin-bottom: 12px; }
.footer-section ul li a, .footer-section ul li { color: #6b7280; font-size: 14px; }
.footer-section ul li a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); color: #94a3b8; }
.payment-badges { display:flex; gap:8px; flex-wrap: wrap; }
.payment-badges span { border:1px solid var(--border-dark); border-radius: 6px; padding: 4px 8px; background:#fff; color:#334155; font-size:12px; font-weight:600; }

.settings-tabs { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.settings-tabs li { list-style:none; }
.settings-tabs .tab-link { display:block; padding: 14px 8px; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.settings-tabs .tab-link.active { color: #0f172a; border-bottom-color: #1e88e5; font-weight: 600; }
.settings-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.btn-save, .btn-logout { display:inline-block; padding:10px 16px; border-radius:8px; border:1px solid var(--border); }
.btn-save { background:#22c55e; border-color:#22c55e; color:#fff; }
.btn-logout { color:#475569; }

.balance-overview { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.balance-card { text-align:left; }
.main-balance { grid-column: span 2; display:flex; gap:12px; align-items:center; }
.balance-content { display:grid; grid-template-columns: 1fr; gap:16px; }
.transactions-history, .balance-actions .action-card, .balance-actions .info-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; }

.chat-unread-badge { min-width: 20px; height: 20px; background: var(--red); color:#fff; border-radius:10px; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 6px; }
.message.unread { border-color: #90caf9; box-shadow: inset 0 0 0 1px #90caf9; }
.message-checks { font-size: 12px; margin-left: 6px; opacity: .75; display:inline-flex; align-items:center; }
.message-checks span + span { margin-left: -4px; }
.message-checks.read { color: #1e88e5; opacity: 1; }
.chat-input textarea { min-height: 42px; max-height: 180px; }

@media (max-width: 1024px) {
  .account-layout { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* ===== v1 pixel-match pass ===== */
.account-v1-page { background: #f4f5f7; }
.v1-sidebar { border-radius: 14px; }
.v1-user-head { display:flex; align-items:center; gap:12px; padding-bottom:14px; margin-bottom:10px; border-bottom:1px solid var(--border); }
.v1-user-head .avatar { width:44px; min-width: 44px; height:44px; border-radius:50%; background:#e2e8f0; color:#0f172a; display:flex; align-items:center; justify-content:center; font-weight:700; overflow:hidden; }
.v1-user-head .avatar img { width:100%; height:100%; object-fit:cover; aspect-ratio: 1/1}
.v1-user-head .name { font-weight:700; color:#0f172a; line-height:1.2; }
.v1-user-head .rate { font-size:12px; color:#64748b; }

.lk-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-bottom:16px; }
.lk-stat-card { background:#fff; border:1px solid #e4e7ec; border-radius:12px; padding:16px; min-height:96px; }
.lk-stat-card .num { font-size:38px; font-weight:700; color:#0f172a; line-height:1; margin-bottom:8px; }
.lk-stat-card .lbl { color:#475569; font-weight:500; }
.lk-empty { min-height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#cbd5e1; }
.lk-empty i { font-size:64px; margin-bottom:10px; }
.lk-empty p { color:#9aa4b2; font-size:28px; font-weight:500; }

.v1-tabs { margin-bottom:12px; }
.v1-settings-card { border-radius:14px; padding:22px; }
.v1-title { font-size:34px; line-height:1.1; margin-bottom:18px; color:#0f172a; }
.v1-form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:14px 18px; }
.v1-form-grid .full { grid-column:1 / -1; }
.v1-form-grid .form-control { width:100%; border:1px solid #d9dee5; border-radius:10px; padding:11px 14px; font: inherit; }
.v1-form-grid label { display:block; margin-bottom:6px; font-weight:600; color:#0f172a; }
.avatar-upload-section.full { display:flex; align-items:center; gap:14px; padding:12px; background:#f3f4f6; border:1px solid #e5e7eb; border-radius:10px; }
.avatar-placeholder { width:78px; height:78px; border-radius:50%; background:#e2e8f0; display:flex; align-items:center; justify-content:center; font-size:28px; color:#64748b; }
.upload-hint { font-size:14px; color:#64748b; margin-bottom:8px; }

.v1-warning { display:flex; gap:10px; align-items:flex-start; background:#fff7ed; border:1px solid #fdba74; color:#9a3412; border-radius:10px; padding:12px 14px; margin-bottom:14px; }
.v1-warning i { margin-top:2px; }

@media (max-width: 1100px) { .lk-stats { grid-template-columns: repeat(2, 1fr); } .v1-form-grid { grid-template-columns:1fr; } }
@media (max-width: 640px) { .lk-stats { grid-template-columns:1fr; } .v1-title { font-size:26px; } }

/* ===== v1 follow-up: settings + wallet ===== */
.v1-profile-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.v1-section-heading { font-size:24px; line-height:1.1; color:#0f172a; }
.v1-external-link { color:#6b7280; font-weight:500; }
.v1-avatar-row { display:grid; grid-template-columns:80px 1fr auto; align-items:center; }
.v1-avatar-text { color:#6b7280; font-size:18px; line-height:1.25; }
.v1-avatar-actions { display:flex; justify-content:flex-end; }
.v1-icon-btn { width:46px; height:46px; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:#64748b; cursor:pointer; }
.v1-type-switch { display:grid; grid-template-columns: 1fr 1fr; border:1px solid #d8dde4; border-radius:10px; overflow:hidden; max-width:560px; }
.v1-type { text-align:center; padding:12px; background:#fff; font-weight:700; cursor:pointer; }
.v1-type input { display:none; }
.v1-type.active { background:#0a2b49; color:#fff; }
.v1-about { min-height:120px; resize:vertical; }

.wallet-top-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.wallet-top-card { background:#fff; border:1px solid #dbe1e8; border-radius:12px; padding:24px; position:relative; }
.wallet-top-card h3 { font-size:24px; line-height:1.1; margin-bottom:14px; color:#0f172a; }
.wallet-inline-form { display:flex; max-width:560px; }
.wallet-inline-form input { flex:1; border:1px solid #d6dce4; border-right:none; border-radius:8px 0 0 8px; padding:12px 14px; font:inherit; }
.wallet-inline-form .currency { width:40px; border:1px solid #d6dce4; border-left:none; display:flex; align-items:center; justify-content:center; color:#94a3b8; }
.wallet-inline-form .btn { border-radius:0 8px 8px 0; }
.wallet-balance-card { overflow:hidden; }
.wallet-balance-num { font-size:44px; font-weight:700; margin-bottom:16px; }
.wallet-coins { position:absolute; right:24px; top:18px; font-size:72px; color:#f59e0b; opacity:.8; }

.wallet-section { margin-bottom:16px; padding:24px; }
.wallet-section h3 { font-size:24px; line-height:1.1; margin-bottom:14px; color:#0f172a; }
.wallet-section p { color:#64748b; margin-bottom:18px; font-size:18px; }
.wallet-table-wrap { border:1px solid #dbe1e8; border-radius:10px; overflow:hidden; }
.wallet-table { width:100%; border-collapse:collapse; }
.wallet-table thead th { background:#f3f4f6; color:#64748b; font-size:18px; font-weight:600; padding:14px; text-align:left; }
.wallet-table td { padding:14px; border-top:1px solid #eaedf1; }
.wallet-table .empty { text-align:right; color:#64748b; }
.wallet-table .sum.plus { color:#16a34a; font-weight:600; }
.wallet-table .sum.minus { color:#dc2626; font-weight:600; }
.withdraw-form-v1 { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; align-items:end; }
.withdraw-form-v1 input, .withdraw-form-v1 select { width:100%; border:1px solid #d6dce4; border-radius:8px; padding:10px 12px; font:inherit; }

@media (max-width: 1200px) {
  .wallet-top-card h3, .wallet-section h3, .v1-section-heading { font-size:20px; }
  .wallet-section p, .v1-avatar-text { font-size:14px; }
}
@media (max-width: 900px) {
  .wallet-top-grid, .withdraw-form-v1 { grid-template-columns:1fr; }
  .v1-avatar-row { grid-template-columns:80px 1fr; }
  .v1-avatar-actions { grid-column: 1 / -1; justify-content:flex-start; }
}

/* Wallet popups and requisites */
.wallet-methods-list { display:grid; gap:10px; margin-bottom:14px; }
.wallet-method-item { border:1px solid #dbe1e8; border-radius:10px; padding:12px 14px; background:#fff; }
.wallet-method-title { font-weight:700; color:#0f172a; }
.wallet-method-sub { color:#64748b; font-size:14px; margin-top:2px; }
.wallet-muted { color:#94a3b8 !important; }

.wallet-modal-backdrop { position:fixed; inset:0; background:rgba(17,24,39,.55); display:none; align-items:center; justify-content:center; padding:16px; z-index:2000; }
.wallet-modal-backdrop.active { display:flex; }
.wallet-modal { width:min(560px, 100%); max-height:90vh; overflow:auto; background:#fff; border-radius:12px; padding:22px 22px 18px; position:relative; }
.wallet-modal h4 { font-size:36px; line-height:1.1; margin-bottom:14px; color:#1f2937; }
.wallet-modal .form-group { margin-bottom:12px; }
.wallet-modal .form-group label { display:block; margin-bottom:6px; font-weight:600; color:#1f2937; }
.wallet-modal input, .wallet-modal select { width:100%; border:1px solid #d1d5db; border-radius:8px; padding:11px 12px; font:inherit; }
.wallet-modal-text { color:#6b7280; margin:0 0 14px; }
.wallet-modal-close { position:absolute; top:10px; right:12px; border:none; background:transparent; font-size:34px; line-height:1; color:#9ca3af; cursor:pointer; }
.wallet-modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }

@media (max-width: 640px) {
  .wallet-modal h4 { font-size:28px; }
  .wallet-modal-actions { grid-template-columns:1fr; }
}

/* Dispute create page + modal */
.dispute-create-page { padding: 30px 0 40px; }
.dispute-create-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15,23,42,.07);
  padding: 28px;
}
.dispute-create-head h1 { font-size: 34px; line-height: 1.15; color: #0f172a; margin: 10px 0; }
.dispute-create-head p { color: #64748b; margin-bottom: 14px; }
.dispute-create-head .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}
.dispute-create-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  color: #1e293b;
}
.dispute-create-form .form-group { margin-bottom: 14px; }
.dispute-create-form .hint { color: #64748b; display: block; margin-top: 6px; }
.dispute-create-actions { display: flex; justify-content: flex-end; gap: 10px; }

.dispute-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .62);
}
.dispute-modal-backdrop.active { display: flex; }
.dispute-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 26px 50px rgba(15, 23, 42, .25);
  padding: 24px;
}
.dispute-modal h3 { margin: 0 0 10px; font-size: 30px; color: #0f172a; }
.dispute-modal-text { color: #64748b; margin-bottom: 14px; }
.dispute-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}
.dispute-modal .hint { color: #64748b; display:block; margin-top: 6px; }
.dispute-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

@media (max-width: 900px) {
  .dispute-create-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dispute-create-card { padding: 18px; }
  .dispute-create-head h1, .dispute-modal h3 { font-size: 26px; }
  .dispute-create-actions { flex-direction: column; }
  .dispute-modal-actions { grid-template-columns: 1fr; }
}

/* ---------- Home manual-deals inspired page ---------- */
.manual-page { background: #f2f4f6; }
.manual-hero { padding: 42px 0 30px; }
.manual-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.manual-kicker { color: var(--green); font-weight: 500; margin-bottom: 10px; }
.manual-hero-content h1 { font-size: 48px; line-height: 1.15; max-width: 720px; letter-spacing: -0.02em; font-weight: 600; }
.manual-hero-content h1 span { color: var(--green); }
.manual-lead { font-size: 18px; color: #5f6b77; margin: 18px 0 24px; max-width: 670px; font-weight: 400; }
.manual-offer-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 14px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 10px 28px rgba(12, 20, 33, .06); max-width: 620px; }
.manual-offer-value { font-size: 30px; line-height: 1; font-weight: 600; color: #101828; }
.manual-offer-note { color: #667085; margin-top: 4px; font-weight: 400; }
.manual-trust-list { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.manual-trust-list li { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.manual-trust-list i { color: var(--green); }

.manual-world { position: relative; min-height: 420px; }
.manual-world-map { position: absolute; inset: 26px 20px; border-radius: 16px; background: url("../images/users/map.png");     background-size: 100% 100%;}
.world-user { position: absolute; width: 88px; height: 88px; border-radius: 50%; padding: 7px; animation: floatAvatar 4.8s ease-in-out infinite; box-shadow: 0 16px 34px rgba(21, 29, 40, .15); }
.world-user img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.user-1 { left: 12%; top: 11%; background: rgba(255, 108, 132, .25); }
.user-2 { left: 50%; top: 7%; background: rgba(160, 124, 255, .27); animation-delay: .5s; }
.user-3 { right: 10%; top: 17%; background: rgba(95, 177, 255, .3); animation-delay: .2s; }
.user-4 { left: 22%; bottom: 12%; background: rgba(109, 201, 255, .32); animation-delay: .8s; }
.user-5 { right: 34%; bottom: 18%; background: rgba(255, 173, 99, .32); }
.user-6 { right: 12%; bottom: 8%; background: rgba(153, 223, 197, .35); animation-delay: .35s; }

/* Desktop wrappers — transparent, children use absolute positioning */
.world-users-row { position: static; }
.world-reviews-row { position: static; }

/* Floating review bubbles */
.world-review { position: absolute; background: #fff; border-radius: 10px; padding: 8px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.10); display: flex; align-items: center; gap: 8px; font-size: 12px; color: #333; white-space: nowrap; opacity: 0; animation: reviewPopup 12s ease-in-out infinite; pointer-events: none; z-index: 2; }
.world-review-icon { color: var(--green); font-size: 13px; flex-shrink: 0; }
.world-review-icon .fa-star { color: #f59e0b; }
.world-review-icon .fa-shield-alt { color: #1976D2; }
.world-review-icon .fa-handshake { color: #7c4dff; }
.review-1 { left: 5%; top: 40%; animation-delay: 0s; }
.review-2 { right: 5%; top: 28%; animation-delay: 2.4s; }
.review-3 { left: 18%; bottom: 32%; animation-delay: 4.8s; }
.review-4 { right: 15%; bottom: 36%; animation-delay: 7.2s; }
.review-5 { left: 35%; top: 48%; animation-delay: 9.6s; }

@keyframes reviewPopup {
    0%,8% { opacity: 0; transform: translateY(6px) scale(.96); }
    12%,28% { opacity: 1; transform: translateY(0) scale(1); }
    32%,100% { opacity: 0; transform: translateY(-4px) scale(.98); }
}

.manual-payments { border-top: 1px solid #e6eaef; border-bottom: 1px solid #e6eaef; background: #f8fafb; }
.manual-payments-row { min-height: 68px; display: flex; align-items: center; gap: 16px; color: #4f5f6f; font-weight: 400; }
.manual-pay-icons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.manual-pay-icons i,
.manual-pay-icons span { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; min-width: 46px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; font-weight: 600; color: #2d3f53; }

.manual-section { padding: 56px 0; }
.manual-section-soft { background: #eef1f5; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; }
.manual-section h2 { font-size: 32px; line-height: 1.2; margin-bottom: 24px; font-weight: 600; }

.manual-steps-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.manual-steps ol { list-style: none; display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.manual-steps li { position: relative; padding-left: 56px; font-size: 16px; line-height: 1.5; color: #273445; font-weight: 400; }
.manual-steps li span { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.manual-video-mock .video-window { border: 12px solid #2d8cff; border-radius: 12px; aspect-ratio: 16 / 9; background: linear-gradient(145deg, #e8ecf2, #ccd4de); position: relative; overflow: hidden; }
.manual-video-mock .video-window::before { content: ''; position: absolute; inset: 14px; background: linear-gradient(120deg, rgba(49, 70, 100, .9), rgba(49, 70, 100, .2)); border-radius: 6px; }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(17, 24, 39, .2); }
.play-button i { color: #3158ff; font-size: 28px; margin-left: 5px; }

.manual-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.manual-benefit-card { background: #fff; border: 1px solid #dfe5ec; border-radius: 14px; padding: 24px; display: flex; gap: 14px; align-items: flex-start; transition: transform .25s ease, box-shadow .25s ease; }
.manual-benefit-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(17, 24, 39, .09); }
.manual-benefit-card i { font-size: 28px; color: var(--green); margin-top: 2px; }
.manual-benefit-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; font-weight: 600; }
.manual-benefit-card p { color: #5f6b77; font-size: 15px; font-weight: 400; }

.manual-premium { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; color: #f8fafc; background: linear-gradient(95deg, #0b1728 5%, #0d3b54 58%, #194358 100%); border-radius: 16px; padding: 30px; align-items: center; }
.manual-premium h3 { font-size: 32px; margin-bottom: 8px; font-weight: 600; }
.manual-price { font-size: 32px; color: #20d57a; font-weight: 600; margin-bottom: 12px; }
.manual-premium p { font-size: 16px; max-width: 620px; margin-bottom: 16px; font-weight: 400; }
.manual-premium ul { list-style: none; display: grid; gap: 14px; }
.manual-premium li { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 400; }
.manual-premium li i { color: #18c96b; }

.manual-faq { background: #fff; border: 1px solid #dde3ea; border-radius: 14px; overflow: hidden; }
.manual-faq details { border-bottom: 1px solid #e8edf2; }
.manual-faq details:last-child { border-bottom: none; }
.manual-faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; padding: 20px 24px; position: relative; }
.manual-faq summary::-webkit-details-marker { display: none; }
.manual-faq summary::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 24px; top: 20px; color: #64748b; transition: transform .25s ease; }
.manual-faq details[open] summary::after { transform: rotate(180deg); }
.manual-faq p { padding: 0 24px 20px; color: #5f6b77; font-size: 15px; font-weight: 400; }

.manual-seo { margin-top: 32px; background: #fff; border: 1px solid #dee4eb; border-radius: 14px; padding: 28px; }
.manual-seo h2 { margin-bottom: 14px; font-size: 28px; font-weight: 600; }
.manual-seo h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 600; }
.manual-seo p, .manual-seo li { font-size: 15px; line-height: 1.7; color: #2d3748; font-weight: 400; }
.manual-seo-toggle { margin-top: 16px; border: none; background: transparent; color: #2374ff; font-size: 15px; cursor: pointer; text-decoration: underline; font-weight: 400; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }
.reveal-on-scroll.delay-1 { transition-delay: .14s; }

@keyframes floatAvatar {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 1200px) {
    .manual-hero-content h1 { font-size: 38px; }
    .manual-lead { font-size: 16px; }
    .manual-section h2, .manual-seo h2 { font-size: 26px; }
    .manual-steps li, .manual-premium li, .manual-seo p, .manual-seo li, .manual-benefit-card p, .manual-premium p, .manual-faq p { font-size: 15px; }
    .manual-benefit-card h3, .manual-faq summary { font-size: 18px; }
    .manual-premium h3 { font-size: 28px; }
    .manual-price { font-size: 28px; }
    .world-review { font-size: 11px; padding: 6px 10px; }
}

@media (max-width: 992px) {
    .manual-hero-grid, .manual-steps-wrap, .manual-premium { grid-template-columns: 1fr; }
    .manual-world { min-height: 320px; }
    .manual-benefits { grid-template-columns: 1fr; }
    .manual-hero-content h1 { font-size: 32px; }
    .world-review { font-size: 10px; }
}

@media (max-width: 768px) {
    .manual-hero-content h1 { font-size: 28px; }
    .manual-lead { font-size: 15px; }
    .manual-offer-card { flex-direction: column; align-items: stretch; }
    .manual-trust-list { gap: 12px; }
    .manual-section h2, .manual-seo h2 { font-size: 22px; }
    .manual-benefit-card h3, .manual-faq summary, .manual-seo h3 { font-size: 17px; }
    .manual-faq summary::after { top: 18px; }
    .manual-payments-row { align-items: flex-start; flex-direction: column; padding: 12px 0; }

    /* Мобильный мир: переключаемся на flex-ряд аватаров */
    .manual-world {
        min-height: 0 !important;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .manual-world-map { display: none; }

    /* Ряд аватаров */
    .world-users-row {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .world-user {
        position: static !important;
        width: 62px !important;
        height: 62px !important;
        animation: none !important;
        transform: none !important;
        flex-shrink: 0;
    }

    /* Ряд отзывов — показываем статично */
    .world-review {
        position: static !important;
        display: flex !important;
        opacity: 1 !important;
        animation: none !important;
        white-space: normal !important;
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    .world-reviews-row {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        padding: 0 4px;
    }
    /* Скрываем лишние отзывы на мобиле */
    .world-review.review-4,
    .world-review.review-5 { display: none !important; }
}

/* ========================================
   Mobile Menu (Hamburger)
   ======================================== */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open,
.mobile-menu-backdrop.open {
    display: flex;
    left: 0;
}

.mobile-menu-backdrop.open {
    display: block;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-nav {
    padding: 12px 0;
    flex: 1;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s;
}

.mobile-nav a:hover {
    background: var(--bg);
    color: var(--primary);
}

.mobile-nav hr {
    margin: 8px 20px;
    border: none;
    border-top: 1px solid var(--border);
}

.mobile-nav i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.mobile-badge {
    background: var(--danger, #ef4444);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 6px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header-actions .btn-primary.btn-sm:not(:last-child) {
        display: none;
    }
}

/* Balance page styles */
.wallet-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .wallet-top-grid { grid-template-columns: 1fr; }
}

.wallet-top-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: max-content;
}

.wallet-balance-label {
    font-size: 14px;
    opacity: .8;
}

.wallet-balance-num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.wallet-balance-card .btn-secondary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    align-self: flex-start;
}

.wallet-coins {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    opacity: 0.15;
}

/* Top-up form (payment.php style) */
.wallet-topup-card .form-group { margin-bottom: 16px; }
.wallet-topup-card .form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; color: #333; }

.topup-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.topup-amount-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s;
}

.topup-amount-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, .12);
}

.topup-currency {
    position: absolute;
    right: 14px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
    pointer-events: none;
}

.topup-methods { margin-bottom: 18px; }
.topup-methods > label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; color: #333; }

.topup-method-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topup-method-list .payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fafbfc;
}

.topup-method-list .payment-method-item:has(input:checked) {
    border-color: var(--green);
    background: #f0faf1;
}

.topup-method-list .payment-method-item input[type="radio"] {
    accent-color: var(--green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.topup-method-list .method-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.topup-method-list .method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topup-method-list .method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topup-method-list .method-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.topup-method-list .method-info span {
    font-size: 12px;
    color: #888;
}

.topup-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.wallet-section {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
}

.wallet-section h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
}

.wallet-muted { color: var(--text-muted, #888); }

.wallet-methods-list { margin-bottom: 16px; }

.wallet-method-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafafa;
}

.wallet-method-title { font-weight: 600; font-size: 15px; }
.wallet-method-sub { color: #666; font-size: 13px; margin-top: 2px; }

.wallet-table-wrap { overflow-x: auto; }

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wallet-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border, #e5e7eb);
    color: #888;
    font-weight: 500;
}

.wallet-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border, #eee);
}

.wallet-table .sum { font-weight: 600; }
.wallet-table .plus { color: #22c55e; }
.wallet-table .minus { color: #ef4444; }
.wallet-table .empty { text-align: center; color: #aaa; padding: 32px; }

.wallet-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.wallet-modal-backdrop.active {
    display: flex;
}

.wallet-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 480px;
    width: 92%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.wallet-modal h4 { margin: 0 0 16px; font-size: 18px; }

.wallet-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.wallet-modal-text { color: #666; font-size: 14px; margin-bottom: 16px; }

.wallet-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.wallet-modal .form-group {
    margin-bottom: 14px;
}

.wallet-modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.wallet-modal .form-group input,
.wallet-modal .form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Profile reviews */
.lk-reviews { display: flex; flex-direction: column; gap: 16px; }

.review-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.review-meta { font-size: 12px; color: #888; margin-top: 2px; }

.review-stars { display: flex; gap: 2px; }
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

.review-text { color: #555; font-size: 14px; line-height: 1.6; }

/* ===== Mobile fixes ===== */
@media (max-width: 768px) {
    /* Header: hide username next to avatar */
    .user-menu-btn span,
    .user-menu-btn i.fa-chevron-down {
        display: none;
    }

    .user-menu-btn {
        padding: 4px;
        border: none;
    }

    /* Balance page */
    .balance-page .wallet-top-grid { grid-template-columns: 1fr; }
    .balance-page .wallet-section { padding: 16px; }
    .balance-page .wallet-balance-num { font-size: 28px; }
    .balance-page .wallet-coins { font-size: 48px; right: 12px; top: 12px; }
    .balance-page .wallet-top-card { padding: 16px; }
    .balance-page .wallet-top-card h3 { font-size: 18px; }
    .balance-page .account-main { min-width: 0; overflow-x: hidden; }

    /* Transactions table → card layout on mobile */
    .wallet-table thead { display: none; }
    .wallet-table,
    .wallet-table tbody,
    .wallet-table tr,
    .wallet-table td {
        display: block;
        width: 100%;
    }
    .wallet-table tr {
        padding: 12px;
        border-bottom: 1px solid var(--border, #eee);
    }
    .wallet-table td {
        padding: 3px 0;
        border: none;
        font-size: 14px;
    }
    .wallet-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        margin-right: 8px;
        font-size: 13px;
    }
    .wallet-table td.empty { text-align: center; }
    .wallet-table td.empty::before { display: none; }

    /* Settings page */
    .settings-page .account-main { min-width: 0; overflow-x: hidden; }

    .settings-tabs.v1-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 0 8px;
    }
    .settings-tabs.v1-tabs li { flex-shrink: 0; }
    .settings-tabs .tab-link { padding: 12px 6px; font-size: 13px; }

    .v1-settings-card { padding: 16px; }
    .v1-profile-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .v1-section-heading { font-size: 20px; }
    .v1-title { font-size: 22px; }
    .v1-avatar-row { grid-template-columns: 60px 1fr; gap: 10px; }
    .v1-avatar-text { font-size: 13px; }
    .avatar-preview { width: 60px; height: 60px; }

    .form-actions.full {
        flex-direction: column;
    }
    .form-actions.full .btn-save,
    .form-actions.full .btn-logout {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Transaction status badges
   ======================================== */
.tx-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.tx-status.tx-success { background: #d1fae5; color: #065f46; }
.tx-status.tx-pending { background: #fef3c7; color: #92400e; }
.tx-status.tx-failed  { background: #fee2e2; color: #991b1b; }

/* Frozen balance state */
.wallet-balance-frozen { border-color: #f59e0b !important; }
.wallet-balance-num.frozen { color: #f59e0b; }
.wallet-frozen-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #92400e;
}
.wallet-frozen-notice i { color: #f59e0b; }

/* Auth popup modal */
.auth-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.auth-popup-backdrop.active { display: flex; }
.auth-popup {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-popup-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 22px; color: #999;
    cursor: pointer; line-height: 1;
}
.auth-popup h3 { font-size: 22px; margin-bottom: 4px; }
.auth-popup .auth-popup-sub { color: #6b7280; font-size: 14px; margin-bottom: 20px; }
.auth-popup .form-group { margin-bottom: 14px; }
.auth-popup .form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.auth-popup .form-group input { width: 100%; border: 1px solid #dbe1e8; border-radius: 8px; padding: 10px 14px; font-size: 15px; outline: none; transition: border-color .15s; box-sizing: border-box; }
.auth-popup .form-group input:focus { border-color: var(--primary, #22c55e); }
.auth-popup .auth-popup-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.auth-popup .auth-popup-actions .btn { width: 100%; text-align: center; }
.auth-popup .auth-popup-register { text-align: center; margin-top: 14px; font-size: 14px; color: #6b7280; }
.auth-popup .auth-popup-register a { color: var(--primary, #22c55e); font-weight: 600; }
.auth-popup .auth-popup-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }

/* Mobile-only auth button */
.btn-mobile-auth { display: none; }
@media (max-width: 768px) {
    .btn-mobile-auth { display: inline-flex; align-items: center; gap: 6px; }
    .header-actions .btn-login-desktop,
    .header-actions .btn-register-desktop { display: none; }
}

/* ================================================================
   БЛОК НОВОСТЕЙ БЛОГА НА ГЛАВНОЙ — стили 1-в-1 с блогом
   ================================================================ */

/* Шапка блока */
.cat-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e3ec;
}

.cat-title-main {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-line-main {
    width: 4px;
    height: 20px;
    background: var(--green, #43a047);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.cat-all-main {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--green, #43a047);
    text-decoration: none;
    transition: gap 0.25s;
}
.cat-all-main:hover { gap: 7px; }

/* Сетка 4 колонки */
.news-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Карточка — в стиле маркета */
.news-card-main {
    background: var(--white, #fff);
    border-radius: var(--radius, 10px);
    overflow: hidden;
    border: 1px solid var(--border, #e8eaf0);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.news-card-main:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Картинка — пропорциональная как в маркете 4:3 */
.news-card-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    flex-shrink: 0;
}

.news-card-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card-main:hover .news-card-main-img img {
    transform: scale(1.04);
}

/* Заглушка без картинки */
.news-card-main-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 36px;
}

/* Тело карточки */
.news-card-main-body {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.news-card-main-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}

.news-card-main:hover .news-card-main-title { color: var(--green, #43a047); }

/* Цена / excerpt */
.news-card-main-text {
    font-size: 13px;
    color: #8891a5;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Нижняя строка */
.news-card-main-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f0f1f5;
    margin-top: auto;
    font-size: 11px;
    color: var(--text-secondary, #b0b8c7);
}

.news-card-main-date {
    font-size: 12px;
    color: #b0b8c7;
}

.news-card-main-stats {
    display: flex;
    gap: 8px;
}

.news-card-main-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #b0b8c7;
}

.news-card-main-stats svg {
    stroke: #b0b8c7;
    flex-shrink: 0;
}

/* Адаптив — 4 → 3 → 2 → 1 в ряд */
@media (max-width: 1100px) {
    .news-grid-main { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .news-grid-main { grid-template-columns: repeat(2, 1fr); }
    .cat-header-main { flex-direction: column; gap: 6px; align-items: flex-start; }
}
@media (max-width: 480px) {
    .news-grid-main { grid-template-columns: 1fr; }
}