/* 知识付费 H5 样式 */
:root {
    --primary: #ff5722;
    --primary-light: #ff8a65;
    --primary-dark: #e64a19;
    --accent: #f44336;
    --success: #26a69a;
    --text: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --card: #fff;
    --border: #eee;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --tabbar-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; border: none; outline: none; }

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}

.main-content { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px); }
.main-content.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 16px); }
.main-content.has-header { padding-top: 48px; }

/* Tabbar */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 100;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    gap: 2px;
}
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-icon { font-size: 20px; }

/* Page Header */
.page-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 99;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 16px; font-weight: 600; }
.back-btn { font-size: 28px; color: var(--text); width: 40px; line-height: 1; }
.header-placeholder { width: 40px; }

/* Search */
.search-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
}
.search-input {
    flex: 1;
    background: var(--bg);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
}
.search-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 16px;
    background: var(--bg);
    font-size: 13px;
    color: var(--text-secondary);
}
.cat-tab.active {
    background: var(--primary);
    color: #fff;
}

/* Banner */
.banner-swiper { padding: 12px 16px; }
.banner-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: center;
    padding: 20px;
    color: #fff;
    position: relative;
}
.banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
    z-index: 1;
}
.banner-text { position: relative; z-index: 2; max-width: 70%; }
.banner-item:nth-child(2) .banner-overlay { background: linear-gradient(90deg, rgba(21,101,192,.7) 0%, rgba(21,101,192,.2) 100%); }
.banner-item:nth-child(3) .banner-overlay { background: linear-gradient(90deg, rgba(0,105,92,.7) 0%, rgba(0,105,92,.2) 100%); }
.banner-text h2 { font-size: 16px; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.banner-btn {
    display: inline-block;
    margin-top: 10px;
    background: #ffeb3b;
    color: #333;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

/* Icon grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px;
    background: #fff;
    margin-bottom: 8px;
}
.icon-item { text-align: center; }
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.icon-item span { font-size: 11px; color: var(--text-secondary); }

/* Announcement */
.announcement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
}
.announcement .icon { color: var(--primary); flex-shrink: 0; }
.announcement-text { white-space: nowrap; animation: scroll 15s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Section */
.section {
    background: #fff;
    margin-bottom: 8px;
    padding: 16px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.section-header h2 { font-size: 16px; font-weight: 600; }
.section-header a { font-size: 13px; color: var(--text-muted); }

/* Course grid */
.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.course-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.course-cover {
    height: 100px;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    overflow: hidden;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.course-card:active .course-cover img { transform: scale(1.03); }
.list-cover { background: #e8e8e8; }
.course-info { padding: 8px 10px 10px; }
.course-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    margin-bottom: 4px;
}
.course-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #fff3e0;
    color: var(--primary);
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.course-price { color: var(--accent); font-weight: 600; }
.course-price.free { color: var(--accent); }
.course-lessons { color: var(--text-muted); font-size: 11px; }

/* Course list */
.course-list { padding: 0 16px 16px; }
.course-list-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}
.list-cover {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e0e0e0;
}
.list-body { flex: 1; min-width: 0; }
.list-body h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.list-footer .price { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    background: #fff;
    padding: 20px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.auth-skip {
    text-align: right;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}
.auth-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 40px; }
.auth-sub a { color: var(--primary); }
.form-group { margin-bottom: 24px; }
.form-input {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    background: transparent;
}
.form-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.form-agree input { margin-top: 3px; }
.form-agree a { color: var(--primary); }
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary:disabled { opacity: .5; }
.auth-error { color: var(--accent); font-size: 13px; margin-bottom: 16px; }

/* Course detail */
.detail-banner {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e0e0e0;
}
.teacher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e0e0;
    object-fit: cover;
}
.detail-body { background: #fff; padding: 16px; margin-bottom: 8px; }
.detail-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-price { color: var(--accent); font-size: 22px; font-weight: 700; }
.detail-actions { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.detail-stats {
    display: flex;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.stat-item { flex: 1; text-align: center; }
.stat-item .num { font-size: 18px; font-weight: 600; }
.stat-item .label { font-size: 12px; color: var(--text-muted); }

.teacher-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    margin-bottom: 8px;
}
.teacher-info { flex: 1; }
.teacher-info h4 { font-size: 14px; }
.teacher-info p { font-size: 12px; color: var(--text-muted); }

.content-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.content-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
}
.content-tab.active { color: var(--accent); font-weight: 600; }
.content-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.tab-panel { background: #fff; padding: 16px; min-height: 120px; }
.lesson-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.lesson-item .trial { color: var(--primary); font-size: 12px; }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }

.detail-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    padding-bottom: calc(8px + var(--safe-bottom));
    z-index: 100;
}
.detail-footer .home-link { font-size: 24px; padding: 0 12px; }
.buy-btn {
    flex: 1;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Order & Pay */
.order-page { padding: 16px; }
.order-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}
.order-card img { width: 100px; height: 75px; border-radius: 8px; object-fit: cover; }
.order-card-info h3 { font-size: 14px; margin-bottom: 8px; }
.order-card-info .price { color: var(--accent); font-size: 18px; font-weight: 700; }

.pay-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.pay-footer .total { font-size: 14px; }
.pay-footer .total span { color: var(--accent); font-size: 20px; font-weight: 700; }
.confirm-pay-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
}

.pay-page { padding: 40px 16px 100px; text-align: center; }
.pay-status { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.pay-amount { font-size: 36px; font-weight: 700; margin-bottom: 32px; }
.pay-methods { padding: 0 16px; }
.pay-method {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
}
.pay-method .icon { font-size: 28px; margin-right: 12px; }
.pay-method .name { flex: 1; font-size: 15px; }
.pay-method .check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
}
.pay-method.selected .check {
    background: var(--accent);
    border-color: var(--accent);
    position: relative;
}
.pay-method.selected .check::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pay-now-btn {
    position: fixed;
    bottom: calc(16px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
}

/* Question bank */
.qb-banner {
    margin: 12px 16px;
    border-radius: var(--radius);
    height: 120px;
    background: center/cover no-repeat #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.qb-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21,101,192,.75), rgba(66,165,245,.55));
}
.qb-banner-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.qb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 16px;
}
.qb-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.qb-cover {
    height: 100px;
    overflow: hidden;
    background: #e8e8e8;
}
.qb-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qb-body { padding: 10px; }
.qb-body h3 { font-size: 13px; margin-bottom: 4px; }
.qb-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.qb-footer { display: flex; justify-content: space-between; align-items: center; }
.qb-price { color: var(--accent); font-weight: 600; font-size: 14px; }
.qb-btn {
    background: #fff3e0;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Exam */
.exam-intro-card {
    margin: 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.exam-intro-card h2 { font-size: 18px; margin-bottom: 16px; }
.exam-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.exam-stars { color: var(--primary); }
.start-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.type-intro {
    background: #fff8e1;
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    font-size: 13px;
}
.type-intro h4 { margin-bottom: 8px; }
.type-intro ol { padding-left: 20px; }
.type-intro li { margin-bottom: 4px; }

.exam-tip {
    color: var(--accent);
    font-size: 12px;
    padding: 8px 16px;
    background: #fff;
}
.answer-sheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 16px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
}
.question-card {
    margin: 0 16px 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    position: relative;
}
.q-type-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 12px 2px 8px;
    border-radius: 0 0 12px 0;
}
.q-progress {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.q-content {
    margin-top: 24px;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
}
.q-option.selected { border-color: var(--primary); background: #fff3e0; }
.q-option.correct { border-color: #26a69a; background: #e0f2f1; }
.q-option.wrong { border-color: var(--accent); background: #ffebee; }

.q-result {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.q-result .your { color: var(--accent); }
.q-result .correct-ans { color: var(--success); }
.q-result .status { color: var(--success); margin: 8px 0; }
.q-analysis { color: var(--text-secondary); margin-top: 8px; }

.exam-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px;
    padding-bottom: calc(12px + var(--safe-bottom));
    z-index: 100;
}
.exam-nav button {
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}
.exam-nav button.active { color: var(--primary); }
.exam-nav .fav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Answer sheet modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
    max-height: 60vh;
    overflow-y: auto;
}
.modal-sheet h3 { text-align: center; margin-bottom: 16px; }
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.sheet-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg);
    font-size: 14px;
    cursor: pointer;
}
.sheet-item.answered { background: #fff3e0; color: var(--primary); }
.sheet-item.current { background: var(--primary); color: #fff; }
.submit-exam-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
}

/* Profile */
.profile-header {
    background: linear-gradient(180deg, #ffe0b2 0%, #fff 100%);
    padding: 24px 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
    object-fit: cover;
}
.profile-name { font-size: 18px; font-weight: 600; }
.profile-settings { margin-left: auto; font-size: 22px; }

.profile-menu {
    margin: -10px 16px 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    box-shadow: var(--shadow);
}
.menu-item { text-align: center; font-size: 12px; }
.menu-item .icon { font-size: 28px; margin-bottom: 4px; }

.profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 12px;
}
.profile-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.profile-card h4 { font-size: 14px; margin-bottom: 4px; }
.profile-card p { font-size: 11px; color: var(--text-muted); }

.service-section {
    margin: 0 16px 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.service-section h3 { font-size: 15px; margin-bottom: 12px; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
}
.service-item { text-align: center; font-size: 11px; color: var(--text-secondary); }
.service-item .icon { font-size: 24px; margin-bottom: 4px; }

/* Orders list */
.orders-list { padding: 16px; }
.order-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.order-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.order-status { color: var(--primary); }
.order-status.paid { color: var(--success); }
.order-item-body { display: flex; gap: 12px; }
.order-item-body img { width: 80px; height: 60px; border-radius: 6px; object-fit: cover; }
.order-item-actions { text-align: right; margin-top: 12px; }
.order-item-actions a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 16px;
    font-size: 13px;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 300;
    display: none;
}
.toast.show { display: block; }
