/* ===== RINIBA LIGHT BLUE THEME ===== */
:root {
    --bg-primary: #e7f0fd;
    --bg-secondary: #f4f8ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f6ff;
    --accent-primary: #3c8ce7;
    --accent-secondary: #67b6ff;
    --accent-gradient: linear-gradient(135deg, #3c8ce7 0%, #67b6ff 100%);
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --text-primary: #1f2632;
    --text-secondary: #46566f;
    --text-muted: #7c8da7;
    --border-color: rgba(60, 140, 231, 0.2);
    --shadow: 0 10px 30px rgba(41, 78, 126, 0.12);
    --radius: 12px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif !important;
    min-height: 100vh;
}

a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-primary); }

/* ===== NAVBAR ===== */
.rn-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rn-navbar .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
}

.rn-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    min-height: 52px;
}

.rn-logo img {
    display: block;
    width: auto;
    height: 48px;
    max-height: 52px;
    object-fit: contain;
}

.rn-logo .logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rn-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rn-nav-links a {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: block;
}

.rn-nav-links a:hover,
.rn-nav-links a.active {
    color: var(--text-primary);
    background: rgba(60, 140, 231, 0.14);
}

.rn-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rn-search {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.rn-search:focus-within { border-color: var(--accent-primary); }

.rn-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 12px;
    width: 180px;
}

.rn-search input::placeholder { color: var(--text-muted); }

.rn-search button {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}
.rn-search button:hover { opacity: 0.85; }

.rn-order-btn {
    padding: 7px 16px;
    background: rgba(60, 140, 231, 0.12);
    border: 1px solid rgba(60, 140, 231, 0.28);
    color: var(--text-primary) !important;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}
.rn-order-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff !important;
}

.rn-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
}

/* ===== HERO ===== */
.rn-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #accbee 0%, var(--bg-primary) 100%);
}

.rn-hero .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.72;
}

.rn-hero .carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.rn-hero .carousel-overlay.has-link {
    pointer-events: auto;
}

.rn-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: rgba(60, 140, 231, 0.78);
    border-radius: 50%;
    color: #fff !important;
    font-size: 26px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.65);
    pointer-events: auto;
}

.rn-play-btn:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
    color: #fff !important;
}

.rn-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1b273a;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.75);
    margin-top: 16px;
    text-align: center;
}

.rn-hero-sub {
    font-size: 16px;
    color: rgba(31, 38, 50, 0.78);
    text-align: center;
    margin-top: 6px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-primary);
    opacity: 0.5;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    border: none;
}
.carousel-indicators .active { opacity: 1; }

/* ===== FEATURE STRIP ===== */
.rn-features {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.rn-feature-row {
    display: flex;
}

.rn-feature-item {
    flex: 1;
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rn-home-left-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(41, 78, 126, 0.14);
    overflow: hidden;
}

.rn-home-left-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rn-feature-item:last-child { border-right: none; }

.rn-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

.rn-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rn-feature-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.rn-feature-btn {
    display: inline-block;
    padding: 6px 18px;
    background: var(--accent-gradient);
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
}
.rn-feature-btn:hover { opacity: 0.85; }

/* ===== NOTICE BANNER ===== */
.rn-notice {
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin: 24px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.rn-notice strong {
    color: var(--accent-primary);
    margin-right: 6px;
}

/* ===== SECTION TITLE ===== */
.rn-section-header {
    text-align: center;
    padding: 48px 0 8px;
}

.rn-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rn-section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.rn-divider {
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ===== CATEGORY TABS ===== */
.rn-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 32px;
}

.rn-cat-tabs .btn-cat {
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.rn-cat-tabs .btn-cat:hover,
.rn-cat-tabs .btn-cat.active {
    background: var(--accent-gradient);
    color: #fff !important;
    border-color: transparent;
}

/* ===== PRODUCT GRID ===== */
.rn-goods { padding-bottom: 60px; }

.rn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.rn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.18);
    color: inherit;
}

.rn-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.rn-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.rn-card:hover .rn-card-img { transform: scale(1.04); }

.rn-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 1;
}

.badge-auto {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-manual {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.rn-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rn-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}

.rn-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.rn-card-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 6px;
}

.rn-card-stock {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rn-card-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: var(--accent-gradient);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
}
.rn-card-btn:hover { opacity: 0.85; color: #fff !important; }

.rn-card-discount {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 6px;
}

.rn-card-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

/* ===== CATEGORY PAGE ===== */
.rn-category-page { padding: 34px 0 60px; }
.rn-category-breadcrumb { margin-bottom: 18px; }
.rn-category-hero {
    padding: 28px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #11253d 0%, #1f4c7a 55%, #5b95b6 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(17, 37, 61, 0.18);
    margin-bottom: 24px;
}
.rn-category-hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 700; }
.rn-category-hero p { margin: 0; opacity: 0.92; max-width: 760px; }
.rn-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.rn-category-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.rn-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 44px rgba(99, 102, 241, 0.16);
    color: inherit;
}
.rn-category-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.rn-category-logo-wrap {
    width: min(100%, 180px);
    height: 115px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #deebfb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center;
    padding: 10px;
}
.rn-category-logo-wrap.large {
    width: min(100%, 180px);
    height: 115px;
    border-radius: 24px;
}
.rn-category-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.rn-category-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--accent-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}
.rn-category-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef7ff;
    border: 1px solid #d7e8fb;
    color: #174a78;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}
.rn-category-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.rn-category-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
}
.rn-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.rn-category-detail-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}
.rn-category-goods-wrap { padding-bottom: 0; }
.rn-category-empty {
    padding: 40px 24px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
}

/* ===== BUY PAGE ===== */
.rn-buy-page { padding: 36px 0 60px; }

.rn-buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.rn-product-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rn-product-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.rn-product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.rn-product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rn-product-price {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rn-product-price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.rn-product-stock {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.rn-product-type-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.rn-ws-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.rn-ws-badge {
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    border-radius: 20px;
    font-size: 12px;
}

.rn-limit-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Form fields */
.rn-form-group { margin-bottom: 16px; }

.rn-form-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.rn-form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.rn-form-control:focus { border-color: var(--accent-primary); }
.rn-form-control::placeholder { color: var(--text-muted); }

.rn-number-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.rn-number-btn {
    width: 36px;
    height: 40px;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rn-number-btn:hover { background: rgba(99,102,241,0.2); }

.rn-number-input {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    outline: none;
}

/* Payment methods */
.rn-payways {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.rn-payway-item { position: relative; }
.rn-payway-item input[type="radio"] { display: none; }

.rn-payway-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.rn-payway-item input[type="radio"]:checked + .rn-payway-label {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.rn-payway-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.rn-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 20px;
}
.rn-submit-btn:hover { opacity: 0.88; }
.rn-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* product tabs */
.rn-tabs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.rn-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow-x: auto;
}

.rn-tab-nav-btn {
    padding: 13px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.rn-tab-nav-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.rn-tab-pane {
    display: none;
    padding: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.rn-tab-pane.active { display: block; }

.rn-tab-pane h1,.rn-tab-pane h2,.rn-tab-pane h3,.rn-tab-pane h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 16px;
}

.rn-tab-pane p { margin-bottom: 10px; }
.rn-tab-pane img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* Notes tip */
.rn-tip-box {
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.rn-tip-box .tip-title {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.rn-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 44px 0 0;
}

.rn-footer-brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.rn-footer-brand span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rn-footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 18px;
}

.rn-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rn-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    font-size: 16px;
    transition: all 0.2s;
}

.rn-social-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff !important;
}

.rn-footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rn-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rn-footer-links li { margin-bottom: 10px; }

.rn-footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.rn-footer-links a:hover { color: var(--accent-primary); }

.rn-footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 36px;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.rn-footer-disclaimer {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.65;
}

/* ===== MODAL ===== */
.rn-modal .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.rn-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius) var(--radius) 0 0;
}

.rn-modal .modal-title { color: var(--text-primary); font-size: 16px; }
.rn-modal .modal-footer { border-top: 1px solid var(--border-color); }
.rn-modal .modal-body { color: var(--text-secondary); line-height: 1.8; }
.rn-modal .btn-close { filter: invert(1) brightness(0.7); }

.rn-modal .btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ===== BREADCRUMB ===== */
.rn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0 0;
    flex-wrap: wrap;
}

.rn-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.rn-breadcrumb a:hover { color: var(--accent-primary); }
.rn-breadcrumb .sep { color: var(--text-muted); opacity: 0.4; }
.rn-breadcrumb .current { color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rn-nav-toggle { display: block; }
    .rn-nav-links { display: none; }
    .rn-search-wrap { display: none; }

    .rn-nav-links.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 8px 0 16px;
        border-top: 1px solid var(--border-color);
        gap: 2px;
    }

    .rn-search-wrap.open {
        display: flex;
        width: 100%;
        padding: 8px 0 12px;
    }

    .rn-search-wrap.open .rn-search { flex: 1; }
    .rn-search-wrap.open .rn-search input { width: 100%; }

    .rn-navbar .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
    }

    .rn-navbar .navbar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .rn-hero .carousel-item img { height: 220px; }
    .rn-hero-title { font-size: 22px; }

    .rn-feature-row { flex-direction: column; }
    .rn-feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 16px;
    }
    .rn-feature-item:last-child { border-bottom: none; }

    .rn-product-title { font-size: 18px; }
    .rn-product-price { font-size: 22px; }
    .rn-buy-card { padding: 18px; }

    .rn-cat-tabs { padding: 16px 0 24px; }
    .rn-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rn-category-detail-heading { flex-direction: column; align-items: flex-start; }
    .rn-category-logo-wrap,
    .rn-category-logo-wrap.large { width: min(100%, 180px); height: 115px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }

/* ===== OVERRIDE Bootstrap dark ===== */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--accent-primary) !important;
}

.tab-content > .active { color: var(--text-secondary); }

.form-control, .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}

.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

    /* ===== NAV AUTH BUTTONS ===== */
    .rn-auth-nav-btns {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .rn-nav-auth-btn {
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
    }

    .rn-nav-login-btn {
        color: var(--text-secondary) !important;
        border: 1px solid var(--border-color);
        background: transparent;
    }
    .rn-nav-login-btn:hover {
        color: var(--text-primary) !important;
        border-color: var(--accent-primary);
    }

    .rn-nav-reg-btn {
        background: var(--accent-gradient);
        color: #fff !important;
        border: 1px solid transparent;
    }
    .rn-nav-reg-btn:hover { opacity: 0.85; color: #fff !important; }

    /* User menu (logged in) */
    .rn-user-menu {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .rn-user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--accent-gradient);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        flex-shrink: 0;
    }

    .rn-user-name {
        font-size: 13px;
        color: var(--text-primary);
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rn-logout-btn {
        padding: 5px 12px;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .rn-logout-btn:hover { background: rgba(239, 68, 68, 0.25); }

    @media (max-width: 576px) {
        .rn-category-grid { grid-template-columns: 1fr; }
        .rn-category-hero { padding: 22px 18px; }
        .rn-category-hero h1 { font-size: 26px; }
    }

    /* ===== AUTH PAGE ===== */
    .rn-auth-page {
        min-height: calc(100vh - 140px);
        display: flex;
        align-items: center;
        padding: 40px 0 60px;
        background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
                    var(--bg-primary);
    }

    .rn-theme-switcher {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1200;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        color: var(--text-primary);
        border-radius: 999px;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: var(--shadow);
        cursor: pointer;
    }

    .rn-theme-switcher .icon {
        font-size: 14px;
        line-height: 1;
    }

    @media (max-width: 768px) {
        .rn-theme-switcher {
            right: 12px;
            top: auto;
            bottom: 14px;
            transform: none;
            padding: 9px 12px;
        }
    }

    .rn-auth-wrap {
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }

    .rn-auth-wrap-reg {
        max-width: 480px;
    }

    .rn-auth-header {
        text-align: center;
        margin-bottom: 28px;
    }

    .rn-auth-logo {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        margin-bottom: 18px;
        font-size: 18px;
        font-weight: 700;
    }

    .rn-auth-logo img {
        height: 32px;
    }

    .rn-auth-logo span {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .rn-auth-title {
        font-size: 26px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 6px;
    }

    .rn-auth-sub {
        font-size: 14px;
        color: var(--text-muted);
    }

    .rn-auth-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 32px;
        backdrop-filter: blur(10px);
    }

    .rn-auth-form-group {
        margin-bottom: 18px;
    }

    .rn-auth-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 7px;
    }

    .rn-auth-label-icon {
        font-size: 14px;
        opacity: 0.7;
    }

    .rn-required {
        color: #ef4444;
        font-size: 14px;
    }

    .rn-auth-input {
        width: 100%;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: var(--text-primary);
        font-size: 14px;
        padding: 11px 16px;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .rn-auth-input:focus {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    }

    .rn-auth-input.is-error { border-color: #ef4444 !important; }
    .rn-auth-input::placeholder { color: var(--text-muted); }

    .rn-auth-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }

    .rn-auth-input-wrap .rn-auth-input {
        padding-right: 44px;
    }

    .rn-pwd-toggle {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        transition: color 0.2s;
    }
    .rn-pwd-toggle:hover { color: var(--text-secondary); }

    .rn-auth-error {
        display: block;
        color: #ef4444;
        font-size: 12px;
        margin-top: 5px;
    }

    .rn-field-hint {
        display: block;
        font-size: 11px;
        color: var(--text-muted);
        margin-top: 5px;
        line-height: 1.5;
    }

    /* Password strength bar */
    .rn-pwd-strength {
        height: 3px;
        background: var(--border-color);
        border-radius: 2px;
        margin-top: 6px;
        overflow: hidden;
    }

    .rn-pwd-bar {
        height: 100%;
        width: 0;
        border-radius: 2px;
        transition: width 0.3s, background 0.3s;
    }

    /* Checkbox */
    .rn-check-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        user-select: none;
    }

    .rn-check-wrap input[type="checkbox"] {
        display: none;
    }

    .rn-checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid var(--border-color);
        border-radius: 4px;
        background: var(--bg-secondary);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .rn-check-wrap input[type="checkbox"]:checked + .rn-checkmark {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
    }

    .rn-check-wrap input[type="checkbox"]:checked + .rn-checkmark::after {
        content: '';
        display: block;
        width: 5px;
        height: 9px;
        border: 2px solid #fff;
        border-top: none;
        border-left: none;
        transform: rotate(45deg) translateY(-1px);
    }

    .rn-auth-row-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Auth buttons */
    .rn-auth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 13px;
        background: var(--accent-gradient);
        color: #fff !important;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s, transform 0.1s;
        text-decoration: none;
        letter-spacing: 0.5px;
    }
    .rn-auth-btn:hover { opacity: 0.88; }
    .rn-auth-btn:active { transform: scale(0.99); }

    .rn-auth-btn-outline {
        background: transparent !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-secondary) !important;
        font-weight: 500;
    }
    .rn-auth-btn-outline:hover {
        border-color: var(--accent-primary) !important;
        color: var(--accent-primary) !important;
        opacity: 1;
    }

    /* Divider */
    .rn-auth-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 18px 0;
        color: var(--text-muted);
        font-size: 12px;
    }
    .rn-auth-divider::before,
    .rn-auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

    /* Alert flash messages */
    .rn-alert {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .rn-alert-success {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.3);
        color: #10b981;
    }

    .rn-alert-error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
    }

    /* Bottom hint */
    .rn-auth-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-top: 18px;
        font-size: 11px;
        color: var(--text-muted);
    }

    @media (max-width: 480px) {
        .rn-auth-card { padding: 22px 18px; }
        .rn-auth-title { font-size: 22px; }
    }
