/* ============================================
   HMR APP CSS — SaaS Dashboard UI
   ============================================ */

:root {
    --hmr-primary: #2F66D0;
    --hmr-primary-dark: #244fa3;
    --hmr-accent: #4AA3FF;
    --hmr-cta: #5FBF3A;
    --hmr-cta-dark: #4da82e;
    --hmr-text: #1F2D3D;
    --hmr-muted: #667085;
    --hmr-border: #E8EEF5;
    --hmr-bg: #F4F7FB;
    --hmr-white: #FFFFFF;
    --hmr-warning: #F59E0B;
    --hmr-danger: #EF4444;
    --hmr-success: #10B981;
    --hmr-card-radius: 18px;
    --hmr-shadow: 0 2px 12px rgba(47, 102, 208, 0.08);
    --hmr-shadow-lg: 0 8px 32px rgba(47, 102, 208, 0.12);
    --hmr-sidebar-w: 240px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hmr-text);
    background: var(--hmr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hmr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Buttons ─────────────────────────────── */

.hmr-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    border: none; cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

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

.hmr-btn-cta { background: var(--hmr-cta); color: #fff; }
.hmr-btn-cta:hover { background: var(--hmr-cta-dark); color: #fff; }

.hmr-btn-outline { background: transparent; border: 1.5px solid var(--hmr-border); color: var(--hmr-text); }
.hmr-btn-outline:hover { border-color: var(--hmr-primary); color: var(--hmr-primary); }

.hmr-btn-danger { background: var(--hmr-danger); color: #fff; }
.hmr-btn-danger:hover { background: #DC2626; color: #fff; }

.hmr-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.hmr-btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.hmr-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.hmr-btn-full { width: 100%; justify-content: center; }

.hmr-btn-outline-sm {
    display: inline-flex; align-items: center;
    padding: 5px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--hmr-border); color: var(--hmr-muted);
    background: transparent; cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s;
}
.hmr-btn-outline-sm:hover { border-color: var(--hmr-primary); color: var(--hmr-primary); }

/* ── Badge ───────────────────────────────── */

.hmr-badge {
    display: inline-block;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    white-space: nowrap;
}

/* ── App Header ──────────────────────────── */

.hmr-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--hmr-white);
    border-bottom: 1px solid var(--hmr-border);
    height: 72px;
}

.hmr-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 100%; height: 100%;
    padding: 0 24px;
}

.hmr-header-left {
    display: flex; align-items: center; gap: 24px;
}

.hmr-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none !important;
    font-weight: 700; font-size: 16px; color: var(--hmr-text);
}

.hmr-logo img,
.hmr-logo-img {
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.hmr-logo svg {
    flex-shrink: 0;
}

/* Auth pages — show logo bigger */
.hmr-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.hmr-auth-logo .hmr-logo-img,
.hmr-auth-logo img {
    max-height: 80px;
    width: auto;
}

.hmr-auth-logo svg {
    width: 56px;
    height: 56px;
}

.hmr-header-nav {
    display: flex; gap: 4px;
}

.hmr-header-nav a {
    padding: 8px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--hmr-muted);
    text-decoration: none !important;
    transition: all 0.2s;
}
.hmr-header-nav a:hover,
.hmr-header-nav a.active {
    color: var(--hmr-primary);
    background: #EFF6FF;
}

.hmr-header-right {
    display: flex; align-items: center; gap: 12px;
}

.hmr-header-avatar {
    position: relative; cursor: pointer;
}

.hmr-header-avatar img {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--hmr-border);
    object-fit: cover;
}

.hmr-avatar-dropdown {
    display: none;
    position: absolute; right: 0; top: 48px;
    background: var(--hmr-white);
    border: 1px solid var(--hmr-border);
    border-radius: 12px;
    box-shadow: var(--hmr-shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 200;
}

.hmr-header-avatar.open .hmr-avatar-dropdown { display: block; }

.hmr-avatar-name {
    display: block;
    padding: 10px 16px;
    font-weight: 600; font-size: 14px;
    border-bottom: 1px solid var(--hmr-border);
}

.hmr-avatar-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px; color: var(--hmr-text);
    text-decoration: none !important;
}
.hmr-avatar-dropdown a:hover { background: #F4F7FB; }

.hmr-mobile-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--hmr-text); padding: 4px;
}

/* ── App Layout ──────────────────────────── */

.hmr-app-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* ── Sidebar ─────────────────────────────── */

.hmr-sidebar {
    width: var(--hmr-sidebar-w);
    flex-shrink: 0;
    background: var(--hmr-white);
    border-right: 1px solid var(--hmr-border);
}

.hmr-sidebar-inner {
    position: sticky; top: 72px;
    padding: 16px 12px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.hmr-sidebar-close {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--hmr-muted); padding: 8px;
    margin-bottom: 8px;
}

.hmr-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.hmr-sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    color: var(--hmr-muted);
    text-decoration: none !important;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.hmr-sidebar-link:hover { color: var(--hmr-primary); background: #EFF6FF; }
.hmr-sidebar-link.active {
    color: var(--hmr-primary);
    background: #EFF6FF;
    font-weight: 600;
    border-left-color: var(--hmr-primary);
}

.hmr-sidebar-overlay { display: none; }

/* ── Main Content ────────────────────────── */

.hmr-main {
    flex: 1;
    padding: 28px 32px;
    max-width: 900px;
}

.hmr-main-wide { max-width: 1200px; }

.hmr-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap; gap: 12px;
}

.hmr-page-header h1 {
    font-size: 24px; font-weight: 700;
}

.hmr-muted { color: var(--hmr-muted); font-size: 14px; }

/* ── Cards ───────────────────────────────── */

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

.hmr-card-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hmr-border);
}

.hmr-card-danger { border-color: #FECACA; }

/* ── Stats Row ───────────────────────────── */

.hmr-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hmr-stat-card {
    background: var(--hmr-white);
    border: 1px solid var(--hmr-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--hmr-shadow);
}

.hmr-stat-num { display: block; font-size: 32px; font-weight: 800; }
.hmr-stat-label { display: block; font-size: 13px; color: var(--hmr-muted); margin-top: 4px; }

.hmr-stat-danger .hmr-stat-num { color: var(--hmr-danger); }
.hmr-stat-warning .hmr-stat-num { color: var(--hmr-warning); }
.hmr-stat-success .hmr-stat-num { color: var(--hmr-success); }

/* ── Task List / Rows ────────────────────── */

.hmr-task-list { display: flex; flex-direction: column; }

.hmr-task-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hmr-border);
}
.hmr-task-row:last-child { border-bottom: none; }

.hmr-task-row-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #EFF6FF;
    color: var(--hmr-primary);
    flex-shrink: 0;
}

.hmr-task-row-info {
    flex: 1;
    display: flex; flex-direction: column;
}
.hmr-task-row-info strong { font-size: 15px; font-weight: 600; }
.hmr-task-row-info small { font-size: 12px; color: var(--hmr-muted); }

/* ── Task Detail ─────────────────────────── */

.hmr-breadcrumb {
    font-size: 13px; color: var(--hmr-muted);
    margin-bottom: 16px;
}
.hmr-breadcrumb a { color: var(--hmr-muted); }
.hmr-breadcrumb a:hover { color: var(--hmr-primary); }

.hmr-task-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap; gap: 12px;
}

.hmr-task-detail-title {
    display: flex; align-items: center; gap: 12px;
}

.hmr-task-detail-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: #EFF6FF;
    color: var(--hmr-primary);
}

.hmr-task-detail-title h1 { font-size: 26px; font-weight: 800; }

.hmr-task-detail-actions { display: flex; gap: 8px; }

.hmr-task-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.hmr-task-detail-side {
    display: flex; flex-direction: column; gap: 20px;
}

/* ── Detail Grid ─────────────────────────── */

.hmr-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.hmr-detail-item label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--hmr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hmr-detail-item span,
.hmr-detail-item input,
.hmr-detail-item select,
.hmr-detail-item textarea {
    font-size: 14px;
}

.hmr-detail-item input,
.hmr-detail-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--hmr-white);
    transition: border-color 0.2s;
}
.hmr-detail-item input:focus,
.hmr-detail-item select:focus {
    outline: none;
    border-color: var(--hmr-primary);
    box-shadow: 0 0 0 3px rgba(47,102,208,0.1);
}

.hmr-full-width { grid-column: 1 / -1; }

.hmr-notes-row {
    display: flex; gap: 10px; align-items: flex-start;
}
.hmr-notes-row textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.hmr-notes-row textarea:focus {
    outline: none;
    border-color: var(--hmr-primary);
}

.hmr-log-change {
    padding-top: 16px;
    border-top: 1px solid var(--hmr-border);
    margin-top: 8px;
}

.hmr-log-change > label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--hmr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hmr-log-change-row {
    display: flex; gap: 10px; align-items: center;
}

.hmr-log-change-row input[type="date"] {
    padding: 8px 12px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 8px;
    font-size: 14px;
}

/* ── Reorder Card ────────────────────────── */

.hmr-reorder-card {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 2px solid #86EFAC;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 16px;
}

.hmr-reorder-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}

.hmr-reorder-label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--hmr-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hmr-reorder-info strong {
    font-size: 15px;
}

.hmr-stars { color: #F59E0B; font-size: 14px; margin-top: 2px; }

/* ── Toggle Switch ───────────────────────── */

.hmr-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--hmr-border);
    font-size: 14px;
}
.hmr-toggle-row:last-of-type { border-bottom: none; }

.hmr-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
}
.hmr-switch input { opacity: 0; width: 0; height: 0; }
.hmr-slider {
    position: absolute; inset: 0;
    background: #D1D5DB;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.hmr-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: var(--hmr-white);
    border-radius: 50%;
    transition: 0.3s;
}
.hmr-switch input:checked + .hmr-slider { background: var(--hmr-primary); }
.hmr-switch input:checked + .hmr-slider::before { transform: translateX(20px); }

/* ── Products ────────────────────────────── */

.hmr-product-list { display: flex; flex-direction: column; gap: 14px; }

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

.hmr-product-img {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--hmr-border);
    flex-shrink: 0;
}

.hmr-product-info {
    flex: 1;
    display: flex; flex-direction: column;
}
.hmr-product-info strong { font-size: 13px; font-weight: 600; }
.hmr-product-info small { font-size: 11px; color: var(--hmr-muted); }

.hmr-product-price {
    font-size: 14px; font-weight: 700; color: var(--hmr-text);
    margin-top: 2px;
}
.hmr-prime { color: var(--hmr-primary); font-size: 11px; font-weight: 600; }

/* ── Tips ─────────────────────────────────── */

.hmr-tips-list {
    list-style: disc;
    padding-left: 18px;
    font-size: 13px;
    color: var(--hmr-muted);
}
.hmr-tips-list li { margin-bottom: 6px; }

/* ── Table ────────────────────────────────── */

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

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

.hmr-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px; font-weight: 600;
    color: var(--hmr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--hmr-border);
}

.hmr-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hmr-border);
}

.hmr-table tbody tr:last-child td { border-bottom: none; }

/* ── Forms ────────────────────────────────── */

.hmr-form { max-width: 600px; }

.hmr-field { margin-bottom: 16px; }

.hmr-field label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--hmr-text);
    margin-bottom: 6px;
}

.hmr-field input,
.hmr-field select,
.hmr-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--hmr-white);
    transition: border-color 0.2s;
}

.hmr-field input:focus,
.hmr-field select:focus,
.hmr-field textarea:focus {
    outline: none;
    border-color: var(--hmr-primary);
    box-shadow: 0 0 0 3px rgba(47,102,208,0.1);
}

.hmr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hmr-checkbox-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--hmr-muted);
    margin-bottom: 16px; cursor: pointer;
}

.hmr-input-sm {
    padding: 6px 10px !important;
    font-size: 13px !important;
    border: 1.5px solid var(--hmr-border);
    border-radius: 8px;
    width: 100%;
    background: #F9FAFB;
}

/* ── Messages ────────────────────────────── */

.hmr-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}
.hmr-msg.success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.hmr-msg.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Empty State ─────────────────────────── */

.hmr-empty-state {
    text-align: center;
    padding: 48px 24px;
}
.hmr-empty-state h3 { margin-bottom: 8px; }
.hmr-empty-state p { color: var(--hmr-muted); margin-bottom: 16px; }

/* ── Tabs ─────────────────────────────────── */

.hmr-tabs {
    display: flex; gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hmr-border);
    padding-bottom: 0;
}

.hmr-tab {
    padding: 10px 20px;
    border: none; background: none;
    font-size: 14px; font-weight: 600;
    color: var(--hmr-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
}
.hmr-tab:hover { color: var(--hmr-primary); }
.hmr-tab.active {
    color: var(--hmr-primary);
    border-bottom-color: var(--hmr-primary);
}

.hmr-checklist-panel { display: none; }
.hmr-checklist-panel.active { display: block; }

/* ── Checklist ────────────────────────────── */

.hmr-checklist { display: flex; flex-direction: column; gap: 2px; }

.hmr-checklist-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hmr-border);
    font-size: 14px;
    cursor: pointer;
}
.hmr-checklist-item:last-child { border-bottom: none; }
.hmr-checklist-item.completed span { text-decoration: line-through; color: var(--hmr-muted); }

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

.hmr-add-checklist-row {
    display: flex; gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--hmr-border);
}

.hmr-add-checklist-input {
    flex: 1;
    padding: 8px 14px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

/* ── Preset Grid ─────────────────────────── */

.hmr-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.hmr-preset-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--hmr-border);
    border-radius: 12px;
    background: var(--hmr-white);
    font-size: 14px; font-weight: 500;
    color: var(--hmr-text);
    cursor: pointer;
    transition: all 0.2s;
}
.hmr-preset-btn:hover {
    border-color: var(--hmr-primary);
    background: #EFF6FF;
    color: var(--hmr-primary);
}

/* ── Auth Pages ──────────────────────────── */

.hmr-auth-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #EFF6FF 0%, #F4F7FB 50%, #E0ECFF 100%);
    padding: 24px;
}

.hmr-auth-card {
    background: var(--hmr-white);
    border-radius: var(--hmr-card-radius);
    box-shadow: var(--hmr-shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}

.hmr-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.hmr-auth-card h2 {
    font-size: 24px; font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

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

.hmr-auth-link {
    text-align: center;
    font-size: 14px;
    color: var(--hmr-muted);
    margin-top: 20px;
}

/* ============================================
   HOMEPAGE
   ============================================ */

.hmr-homepage {
    background: var(--hmr-white);
    min-height: 100vh;
}

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

.hmr-pub-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    padding: 12px 32px;
}

.hmr-pub-nav {
    display: flex; align-items: center; gap: 24px;
}

.hmr-pub-nav a {
    font-size: 15px; font-weight: 500;
    color: var(--hmr-text);
    text-decoration: none !important;
}
.hmr-pub-nav a:hover { color: var(--hmr-primary); }

.hmr-pub-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--hmr-text); }

/* Hero */
.hmr-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.hmr-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #E8F0FE 0%, #F4F7FB 60%, var(--hmr-white) 100%);
    z-index: 0;
}

.hmr-hero-bg::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200V120C200 60 400 80 600 100S1000 140 1200 80V200z' fill='%23F4F7FB' fill-opacity='0.5'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.hmr-hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px; margin: 0 auto;
    padding: 0 32px;
}

.hmr-hero-text h1 {
    font-size: 44px; font-weight: 800;
    line-height: 1.15;
    color: var(--hmr-text);
    margin-bottom: 20px;
}

.hmr-hero-text p {
    font-size: 17px;
    color: var(--hmr-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 500px;
}

.hmr-hero-secondary {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px; font-weight: 600;
    color: var(--hmr-muted);
    text-decoration: none !important;
}
.hmr-hero-secondary:hover { color: var(--hmr-primary); }

/* Preview Card */
.hmr-hero-card {
    display: flex; justify-content: center;
}

.hmr-preview-card {
    background: var(--hmr-white);
    border: 1px solid var(--hmr-border);
    border-radius: 20px;
    box-shadow: var(--hmr-shadow-lg);
    padding: 24px;
    width: 100%;
    max-width: 440px;
}

.hmr-preview-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px; font-weight: 700;
}

.hmr-preview-logo {
    display: flex; align-items: center; gap: 8px;
}

.hmr-preview-user { color: var(--hmr-muted); }

.hmr-preview-title {
    font-size: 16px; font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hmr-border);
    margin-bottom: 8px;
}

.hmr-preview-tasks { display: flex; flex-direction: column; }

.hmr-preview-task {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hmr-border);
}
.hmr-preview-task:last-child { border-bottom: none; }

.hmr-preview-task-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.hmr-preview-task-info {
    flex: 1;
    display: flex; flex-direction: column;
}
.hmr-preview-task-info strong { font-size: 14px; }
.hmr-preview-task-info small { font-size: 11px; color: var(--hmr-muted); }

/* Features */
.hmr-features {
    padding: 60px 0 80px;
    background: var(--hmr-white);
}

.hmr-features-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px; margin: 0 auto;
    padding: 0 32px;
}

.hmr-feature-card {
    text-align: center;
    padding: 32px 24px;
}

.hmr-feature-icon {
    width: 72px; height: 72px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hmr-feature-card h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 10px;
}

.hmr-feature-card p {
    font-size: 14px;
    color: var(--hmr-muted);
    line-height: 1.6;
}

/* Footer */
.hmr-pub-footer {
    text-align: center;
    padding: 32px;
    color: var(--hmr-muted);
    font-size: 13px;
    border-top: 1px solid var(--hmr-border);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hmr-task-detail-layout {
        grid-template-columns: 1fr;
    }
    .hmr-task-detail-side {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hmr-header-nav { display: none; }
    .hmr-mobile-toggle { display: block; }

    .hmr-sidebar {
        position: fixed; top: 0; left: -280px;
        width: 280px; height: 100vh;
        z-index: 300;
        transition: left 0.3s ease;
    }

    .hmr-sidebar-overlay {
        display: block;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 299;
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s;
    }

    body.hmr-sidebar-open .hmr-sidebar { left: 0; }
    body.hmr-sidebar-open .hmr-sidebar-overlay { opacity: 1; pointer-events: auto; }

    .hmr-sidebar-inner { padding-top: 24px; }
    .hmr-sidebar-close { display: block; }

    .hmr-main { padding: 20px 16px; }

    .hmr-stats-row { grid-template-columns: 1fr 1fr; }

    .hmr-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .hmr-hero-text h1 { font-size: 32px; }
    .hmr-hero-text p { max-width: 100%; }
    .hmr-hero { padding: 40px 0 60px; }

    .hmr-features-inner { grid-template-columns: 1fr; gap: 16px; }

    .hmr-pub-nav { display: none; }
    .hmr-pub-menu-toggle { display: block; }
    .hmr-pub-header.open .hmr-pub-nav {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--hmr-white);
        padding: 16px 32px;
        border-bottom: 1px solid var(--hmr-border);
        box-shadow: var(--hmr-shadow);
    }

    .hmr-field-row { grid-template-columns: 1fr; }
    .hmr-detail-grid { grid-template-columns: 1fr; }

    .hmr-preview-card { max-width: 100%; }

    .hmr-preset-grid { grid-template-columns: 1fr 1fr; }

    .hmr-task-row .hmr-badge { display: none; }

    .hmr-auth-card { padding: 28px 20px; }

    .hmr-log-change-row { flex-direction: column; }

    .hmr-task-detail-header { flex-direction: column; align-items: flex-start; }

    .hmr-reorder-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hmr-stats-row { grid-template-columns: 1fr; }
    .hmr-hero-text h1 { font-size: 26px; }
    .hmr-preset-grid { grid-template-columns: 1fr; }
    .hmr-tabs { overflow-x: auto; }
}
