/* ==================== SYSTEM VARIABLES & CONFIGURATION ==================== */

/* Chế độ Sáng (Default/Day Mode) */
:root {
    --bg-primary: #f5f5f7;       /* Off-white của Apple */
    --bg-secondary: #ffffff;     /* Màu trắng tinh khiết */
    --bg-tertiary: #f5f5f7;      /* Bề mặt xám nhẹ cho inputs */
    
    --accent-cyan: #0066cc;      /* Màu xanh dương link Apple */
    --accent-purple: #862e9c;    /* Màu tím cao cấp */
    --accent-accent: #e03131;    /* Màu đỏ cảnh báo */
    --success-green: #2b8a3e;    /* Màu thành công */
    
    --text-primary: #1d1d1f;     /* Màu chữ tối chính */
    --text-secondary: #515154;   /* Chữ phụ xám */
    --text-muted: #86868b;       /* Chữ chú thích */
    
    --accent-gradient: linear-gradient(135deg, #0066cc 0%, #3b82f6 50%, #862e9c 100%);
    --cyan-purple-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    
    /* Layout Tokens */
    --border-radius-sm: 8px;
    --border-radius-md: 18px;
    --border-radius-lg: 28px;
    
    --border-glass: 1px solid rgba(0, 0, 0, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-heavy: rgba(255, 255, 255, 0.92);
    --blur-glass: blur(20px);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 4px 20px rgba(0, 102, 204, 0.1);
    --shadow-glow-purple: 0 4px 20px rgba(134, 46, 156, 0.1);

    /* Fonts */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Chế độ Tối (Night Mode) */
[data-theme="dark"] {
    --bg-primary: #000000;       /* Màu đen thuần khiết Apple */
    --bg-secondary: #161617;     /* Thẻ/Thành phần xám tối */
    --bg-tertiary: #1d1d1f;      /* Nền input tối */
    
    --accent-cyan: #2997ff;      /* Xanh dương neon sáng */
    --accent-purple: #d896ff;    /* Tím neon sáng */
    --accent-accent: #ff4a85;
    --success-green: #30d158;
    
    --text-primary: #f5f5f7;     /* Màu chữ bạc sáng */
    --text-secondary: #86868b;   /* Chữ phụ */
    --text-muted: #6e6e73;
    
    --accent-gradient: linear-gradient(135deg, #2997ff 0%, #00f2fe 50%, #9d4edd 100%);
    --cyan-purple-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(22, 22, 23, 0.75);
    --bg-glass-heavy: rgba(22, 22, 23, 0.95);
    --blur-glass: blur(20px);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(41, 151, 255, 0.15);
    --shadow-glow-purple: 0 0 20px rgba(216, 150, 255, 0.15);
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(41, 151, 255, 0.3);
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
    outline: none;
}

input, select, textarea {
    font-family: var(--font-body);
}

/* ==================== CORE COMPONENTS ==================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px; /* Bo tròn hoàn toàn kiểu Apple */
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: -0.2px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-outline {
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-cyan);
    color: #ffffff;
    transform: scale(1.02);
}

.btn-accent {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-accent:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-block {
    display: flex;
    width: 100%;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: rgba(128, 128, 128, 0.1);
    color: var(--accent-cyan);
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.badge-new {
    background: rgba(43, 138, 62, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(43, 138, 62, 0.2);
}

.badge-likenew {
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.badge-admin {
    background: rgba(134, 46, 156, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(134, 46, 156, 0.2);
}

/* General inputs & Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-input, .select-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.25s ease;
}

.form-input:focus, .select-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: var(--bg-secondary);
}

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

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

/* Table styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-table th, .admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: rgba(128, 128, 128, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-table tbody tr:hover {
    background-color: rgba(128, 128, 128, 0.02);
}

/* ==================== LAYOUT: HEADER ==================== */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-glass);
    border-bottom: var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px; /* Thanh header thanh mảnh đặc trưng Apple */
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.logo-icon {
    color: var(--text-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 13px;
    letter-spacing: -0.1px;
}

.nav-link i {
    margin-right: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    background-color: rgba(128, 128, 128, 0.08);
}

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

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-cyan);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 20px;
    color: var(--text-primary);
    margin-left: 8px;
}

.hidden {
    display: none !important;
}

/* User Account Dropdown trigger in Header */
.user-menu-wrapper {
    position: relative;
}

.user-trigger-btn {
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.user-trigger-btn:hover {
    background: rgba(128, 128, 128, 0.15);
}

.user-trigger-btn .avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10px;
}

/* ==================== VIEW: APPLE HERO STORES BANDS ==================== */
.apple-hero {
    position: relative;
    width: 100%;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.apple-hero-text {
    max-width: 600px;
    z-index: 2;
}

.apple-hero h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.8px;
}

.tagline {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.price-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.apple-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apple-link:hover {
    text-decoration: underline;
}

.apple-hero-media {
    width: 100%;
    max-width: 750px;
    margin-top: 30px;
    z-index: 2;
}

.apple-hero-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

/* Dark Hero Band (iPhone 15 Pro style - Mặc định đen) */
.dark-hero {
    background-color: #000000 !important;
    color: #f5f5f7 !important;
}
.dark-hero .price-info {
    color: #86868b !important;
}

/* Light Hero Band (iPhone 15 style - Mặc định sáng) */
.light-hero {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border-top: 12px solid var(--bg-primary); /* Rãnh phân cách kiểu Apple */
}
.light-hero .price-info {
    color: #86868b !important;
}

/* Dynamic Gradient text for iPhone 15 tag */
.font-gradient {
    background: linear-gradient(90deg, #ff007f 0%, #7f00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== VIEW: APPLE GRID ==================== */
.apple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    padding-bottom: 60px;
}

.grid-card {
    height: 400px;
    border-radius: var(--border-radius-md);
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
}

.card-repair-teaser {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), url('repair_service.png');
    color: #ffffff;
}

.card-community-teaser {
    background-color: #161617;
    background-image: linear-gradient(135deg, rgba(22,22,23,0.9) 0%, rgba(0,0,0,0.85) 100%);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nếu web đổi sang Light Mode, card teaser cộng đồng chuyển sang sáng màu */
[data-theme="light"] .card-community-teaser {
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.grid-card h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.grid-card p {
    font-size: 14px;
    max-width: 320px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.apple-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-cyan);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    align-self: flex-start;
}

.apple-link-btn:hover {
    opacity: 0.95;
    color: #ffffff;
}

/* ==================== VIEW: HOME FEATURES ==================== */
.features-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.6px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== VIEW: HOME TESTIMONIALS ==================== */
.testimonials-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

.testimonial-card .stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 12px;
}

.testimonial-card p {
    font-style: normal;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.client-info strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 14px;
}

.client-info span {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ==================== VIEW: SHOP ==================== */
.page-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.page-header p {
    color: var(--text-secondary);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 60px;
}

.shop-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
}

.filter-box {
    margin-bottom: 24px;
}

.filter-box:last-child {
    margin-bottom: 0;
}

.filter-box h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

.search-input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Styled radio/checkboxes */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-cyan);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent-cyan);
    border: none;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* Shop Catalog */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-header span {
    color: var(--text-secondary);
    font-size: 14px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-wrapper label {
    font-size: 13px;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Product Card (Apple Minimalist style) */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background: rgba(128, 128, 128, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.card-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-body .brand {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.product-card-body h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.product-card-body .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: auto;
}

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

/* ==================== VIEW: REPAIR & COST CALCULATOR ==================== */
.repair-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    padding-bottom: 60px;
}

.repair-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    height: 100%;
}

.repair-card h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    color: var(--text-primary);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.calculator-result-box {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-result-box span {
    font-size: 12px;
    color: var(--text-secondary);
}

.estimated-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 4px 0;
}

.disclaimer {
    font-size: 11px;
    color: var(--text-muted);
}

/* Repair Tracker styling */
.search-tracker-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-tracker-bar input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.search-tracker-bar input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.tracker-result-area {
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.ticket-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Stepper horizontal/vertical */
.stepper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 16px;
    margin-bottom: 20px;
}

.stepper::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
}

.step-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Active and Completed States */
.step.active .step-icon {
    background: var(--accent-cyan);
    color: #ffffff;
    border: none;
}

.step.active .step-label {
    color: var(--accent-cyan);
    font-weight: 500;
}

.step.completed .step-icon {
    background: rgba(43, 138, 62, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.step.completed .step-label {
    color: var(--text-primary);
}

/* Status logs timeline in repair tracker card */
.tracker-status-log-wrapper {
    margin: 24px 0;
    padding: 16px;
    background: rgba(128, 128, 128, 0.04);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.tracker-status-log-wrapper h4 {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.status-log-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 14px;
}

.status-log-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-color);
}

.log-item {
    position: relative;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.log-item .log-time {
    font-size: 10px;
    color: var(--text-muted);
}

.log-item .log-text {
    color: var(--text-secondary);
}

.tracker-status-text {
    text-align: center;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.tracker-status-text strong {
    color: var(--accent-cyan);
}

.tracker-empty-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 30px 0;
}

/* ==================== VIEW: COMMUNITY ==================== */
.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.community-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 60px;
}

.community-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.category-card {
    padding: 12px;
}

.category-card h3, .info-card h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.comm-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 400;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 13px;
}

.category-link i {
    width: 14px;
}

.category-link:hover, .category-link.active {
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-primary);
}

.category-link.active {
    font-weight: 600;
    color: var(--accent-cyan);
}

.tech-profile-mini {
    display: flex;
    gap: 10px;
    align-items: start;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.tech-info strong {
    display: block;
    font-size: 13px;
}

.tech-info p {
    font-size: 11px;
    margin-top: 4px;
}

.search-feed-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-feed-bar input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
}

.search-feed-bar input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.search-feed-bar i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Feed Posts */
.feed-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    position: relative;
}

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

.post-author-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-meta h4 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-date {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.tag-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
}

.tag-repair {
    background: rgba(224, 49, 49, 0.1);
    color: #e03131;
}

.tag-check {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
}

.tag-general {
    background: rgba(43, 138, 62, 0.1);
    color: #2b8a3e;
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.post-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    margin-bottom: 12px;
}

.post-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-act-btn:hover {
    color: var(--accent-cyan);
}

.post-act-btn.active {
    color: var(--accent-cyan);
}

.post-act-btn i {
    font-size: 13px;
}

/* Comments area */
.post-comments-section {
    background: rgba(128, 128, 128, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 12px;
}

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

.comment-item {
    display: flex;
    gap: 10px;
    align-items: start;
}

.comment-bubble {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    flex: 1;
    border: 1px solid var(--border-color);
}

.comment-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.comment-bubble p {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-input-area {
    display: flex;
    gap: 8px;
}

.comment-input-area input {
    flex: 1;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 12px;
}

.comment-input-area input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.login-to-comment-msg {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== VIEW: ADMIN DASHBOARD ==================== */
.admin-container {
    padding-bottom: 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

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

.admin-tab-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

.admin-tab-btn .badge {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    margin-left: 4px;
}

.admin-tab-btn.active .badge {
    background: var(--accent-cyan);
    color: #ffffff;
}

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

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

.tab-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tab-actions-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.admin-table img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: rgba(128, 128, 128, 0.02);
    border-radius: 4px;
}

.admin-actions-cell {
    display: flex;
    gap: 6px;
}

/* ==================== FLOATING CONTACT WIDGET ==================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-phone {
    background-color: var(--success-green);
    animation: phonePulse 2s infinite;
}

.btn-zalo {
    background-color: #0068ff; /* Màu xanh Zalo chính thức */
    animation: phonePulse 2.3s infinite;
}

.contact-item:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.contact-item .tooltip {
    position: absolute;
    right: 64px;
    background-color: rgba(22, 22, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
}

/* Light mode tooltip styling */
[data-theme="light"] .contact-item .tooltip {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.contact-item:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes phonePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 138, 62, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(43, 138, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 138, 62, 0); }
}

/* ==================== LAYOUT: FOOTER ==================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-info h3 span {
    font-weight: 400;
    color: var(--text-secondary);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    max-width: 300px;
}

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

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: #ffffff;
}

.main-footer h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    align-items: start;
}

.footer-contact li i {
    color: var(--text-primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

/* ==================== MODALS GENERAL STYLING ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-glass-heavy);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    font-size: 18px;
    color: var(--text-secondary);
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.auth-toggle-text {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.error-msg {
    color: #e03131;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Product Detail Modal Layout */
.detail-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
}

.detail-img-container {
    background: rgba(128, 128, 128, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-img-container img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.detail-info-container {
    display: flex;
    flex-direction: column;
}

.detail-info-container h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-info-container .detail-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.detail-info-container p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 11px;
}

.specs-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 35%;
}

/* Cart items list */
.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(128, 128, 128, 0.02);
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 13px;
    font-weight: 500;
}

.cart-item-details span {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.03);
    color: var(--text-primary);
}

.qty-control span {
    font-size: 12px;
    font-weight: 600;
    padding: 0 4px;
}

.cart-item-remove {
    color: var(--text-secondary);
}

.cart-item-remove:hover {
    color: var(--accent-accent);
}

.cart-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-total-bar strong {
    font-size: 18px;
    color: var(--accent-cyan);
}

#checkout-form {
    background: rgba(128, 128, 128, 0.02);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

#checkout-form h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 12px;
}

.estimated-booking-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 6px 0;
}

/* User Profile modal list */
.profile-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.profile-details h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.profile-details p {
    font-size: 11px;
    color: var(--text-secondary);
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-sub-section h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    margin-bottom: 10px;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.profile-list-item {
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== VIEW-SECTION SPA ROUTER TOGGLE ==================== */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

/* Mobile Nav Drawer styling */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: var(--bg-glass-heavy);
    z-index: 999;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: right 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav-drawer.active {
    right: 0;
}

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

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-link {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.drawer-link i {
    width: 20px;
}

.drawer-link.active {
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-primary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes premiumFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hiệu ứng trôi nổi nhẹ nhàng cho ảnh iPhone chính */
.apple-hero-img {
    animation: floatImage 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Hiệu ứng trượt xuất hiện tuần tự cho các thẻ */
.feature-card, .testimonial-card, .product-card, .grid-card {
    opacity: 0;
    animation: premiumFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:nth-child(1) { animation-delay: 0.15s; }
.testimonial-card:nth-child(2) { animation-delay: 0.25s; }

/* Tương tác khi di chuột (Hover states) cực kỳ mượt mà */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}
.product-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-cyan);
}
[data-theme="dark"] .product-card:hover {
    box-shadow: 0 15px 35px rgba(41, 151, 255, 0.15);
}

.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.grid-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.grid-card:hover {
    transform: translateY(-4px) scale(1.008);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Các nút bấm có độ nẩy */
.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
}
[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.4);
}

/* Đường gạch chân chạy hiệu ứng của menu điều hướng */
.nav-link {
    position: relative;
    transition: all 0.3s ease !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 50%;
}

/* Hiệu ứng chuyển cảnh SPA mượt mà */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}
.view-section.active {
    display: block;
    animation: viewFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 992px) {
    .apple-hero {
        padding: 50px 20px;
    }
    
    .apple-hero h2 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .apple-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-card {
        height: 320px;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .repair-layout {
        grid-template-columns: 1fr;
    }
    
    .community-layout {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-modal-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==================== FLOATING CONTACT WIDGET ==================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999 !important;
}

.contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-phone {
    background-color: var(--success-green);
    animation: phonePulse 2s infinite;
}

.btn-zalo {
    background-color: #0068ff;
    animation: phonePulse 2.3s infinite;
}

.contact-item:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.contact-item .tooltip {
    position: absolute;
    right: 64px;
    background-color: rgba(22, 22, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
}

[data-theme="light"] .contact-item .tooltip {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.contact-item:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes phonePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 138, 62, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(43, 138, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 138, 62, 0); }
}

/* ==================== TRACKER STATUS LOGS TIMELINE ==================== */
.tracker-status-log-wrapper {
    margin: 24px 0;
    padding: 16px;
    background: rgba(128, 128, 128, 0.04);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    text-align: left;
}

.tracker-status-log-wrapper h4 {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.status-log-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 14px;
}

.status-log-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-color);
}

.log-item {
    position: relative;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.log-item .log-time {
    font-size: 10px;
    color: var(--text-muted);
}

.log-item .log-text {
    color: var(--text-secondary);
}

/* ==================== FORUM POST IMAGES ==================== */
.post-image-wrapper {
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    max-height: 400px;
    border: 1px solid var(--border-color);
    background-color: rgba(128, 128, 128, 0.02);
}

.post-attached-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* ==================== HERO WATERMARK STYLING ==================== */
.hero-watermark {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04) !important;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    font-family: var(--font-heading);
    letter-spacing: -2px;
    text-align: center;
}

[data-theme="light"] .dark-hero .hero-watermark {
    color: rgba(255, 255, 255, 0.04) !important;
}

.light-hero .hero-watermark {
    color: rgba(0, 0, 0, 0.025) !important;
}

/* Kiểu chữ PRO khổng lồ màu cam gradient phía sau camera */




/* Hiệu ứng trôi nổi lơ lửng & zoom nhẹ cho điện thoại trên banner */
#hero-pro-band .apple-hero-img {
    animation: floatCameraPro 6s ease-in-out infinite !important;
}

@keyframes floatCameraPro {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.015);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* ==================== HERO SLIDER ARROWS ==================== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.prev-arrow {
    left: 24px;
}

.next-arrow {
    right: 24px;
}

/* Hiệu ứng chuyển cảnh khi đổi dòng máy mượt mà */
.apple-hero-text, .apple-hero-media {
    transition: opacity 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), filter 0.22s ease !important;
}

.hero-watermark {
    transition: opacity 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), filter 0.22s ease !important;
}

.slide-hidden {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    filter: blur(4px);
}

.hero-watermark.slide-hidden {
    opacity: 0 !important;
    transform: translate(-50%, -46%) scale(0.96) !important;
    filter: blur(6px);
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .prev-arrow {
        left: 12px;
    }
    .next-arrow {
        right: 12px;
    }
}

/* ==================== PREMIUM CINEMATIC ANIMATIONS ==================== */
.reveal-element {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(5px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.85s ease;
    will-change: transform, opacity, filter;
}

.reveal-element.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Reveal cho hình ảnh phóng to từ 0.95 -> 1 */
.reveal-img {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-img.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Độ trễ Staggered Reveal */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* Nâng cấp Product Card Hover */
.product-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.45s ease !important;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Nút Mua ngay ẩn trượt lên */
.product-hover-btn-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    z-index: 5;
}

.product-card:hover .product-hover-btn-wrapper {
    transform: translateY(0);
}

.product-hover-btn {
    width: 90%;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 0;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.product-hover-btn:hover {
    background: #f0f0f0;
    transform: scale(1.03);
}

.product-hover-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

.product-hover-btn:hover i {
    transform: translateX(4px);
}

/* Ripple Effect cho các nút bấm khi click */
.btn, .apple-link, .hero-pro-btn, .product-hover-btn {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hiệu ứng Glow cho các nút bấm Pro khi hover */
.hero-pro-btn {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 0 0 0 rgba(255, 126, 64, 0) !important;
}

.hero-pro-btn:hover {
    box-shadow: 0 0 25px rgba(255, 126, 64, 0.6) !important;
    transform: scale(1.05) !important;
    background: linear-gradient(135deg, #ff9460 0%, #ff571a 100%) !important;
}

/* Cinematic Letter Spacing & Reveal */
.reveal-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.reveal-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.show .letter {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover zoom inside card */
.product-card img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card:hover img {
    transform: scale(1.06) !important;
}


/* Image hover zoom inside card */
.product-card img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover img {
    transform: scale(1.06) !important;
}

/* Ambient Corner Glow Effects */
.hero-glow {
    position: absolute;
    bottom: -180px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.22;
    transition: background 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: background;
}

.hero-glow-left {
    left: -180px;
}

.hero-glow-right {
    right: -180px;
}


/* ==================== 3D LAYERED LAYOUT FOR HERO PRO BAND ==================== */
#hero-pro-band {
    min-height: 520px !important;
    height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 50px !important;
    padding-bottom: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

#hero-pro-band .apple-hero-text {
    z-index: 4 !important;
    position: relative !important;
    text-align: center !important;
    max-width: 620px !important;
    margin-bottom: 0 !important;
}

#hero-pro-band 

@keyframes watermarkPro3DIn {
    from {
        opacity: 0;
        transform: translate(-50%, -56%) scale(0.92);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

#hero-pro-band .apple-hero-media {
    position: relative !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 650px !important;
    margin-top: -70px !important;
    z-index: 3 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

#hero-pro-band .apple-hero-img {
    width: auto !important;
    height: 380px !important;
    max-height: 52vh !important;
    object-fit: contain !important;
    display: block !important;
    transform-origin: bottom center !important;
    animation: floatCameraPro3D 6s ease-in-out infinite !important;
}

@keyframes floatCameraPro3D {
    0% {
        transform: translateY(0) scale(1.04);
    }
    50% {
        transform: translateY(-8px) scale(1.055);
    }
    100% {
        transform: translateY(0) scale(1.04);
    }
}

/* Slide Hidden animation for 3D Layering */
#hero-pro-band .apple-hero-media.slide-hidden {
    opacity: 0 !important;
    transform: translateY(15px) scale(0.95) !important;
    filter: blur(8px);
}

#hero-pro-band .hero-pro-watermark.slide-hidden {
    opacity: 0 !important;
    transform: translate(-50%, -46%) scale(0.96) !important;
    filter: blur(8px);
}

/* Mobile responsive styles for 3D Layering */
@media (max-width: 768px) {
    #hero-pro-band {
        min-height: 510px !important;
        height: 510px !important;
        padding-top: 30px !important;
    }
    
    #hero-pro-band .apple-hero-text {
        transform: scale(0.92) !important;
        transform-origin: top center !important;
    }
    
    #hero-pro-band 
    
    #hero-pro-band .apple-hero-media {
        max-width: 100% !important;
        margin-top: -80px !important;
    }
    
    #hero-pro-band .apple-hero-img {
        height: 290px !important;
        max-height: 48vh !important;
    }
}

.slider-arrow { z-index: 5 !important; }

/* ==================== SIRI LIQUID GLASS BUTTON STYLES ==================== */
.siri-glass-btn {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.9) !important;
    z-index: 10 !important; /* Đặt cao hơn ảnh để có thể click */
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    background: rgba(10, 10, 10, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    will-change: transform, background, border-color;
    cursor: pointer !important;
}

.siri-glass-btn:hover {
    transform: translateX(-50%) scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 
                0 0 25px rgba(255, 255, 255, 0.1) !important;
}

.siri-blobs-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    filter: blur(12px) saturate(1.8) !important;
    pointer-events: none !important;
}

.siri-glass-btn:hover .siri-blobs-container {
    opacity: 0.35 !important; /* Show glowing Siri blobs inside on hover! */
}

.siri-blob {
    position: absolute !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    mix-blend-mode: screen !important;
    pointer-events: none !important;
}

.siri-blob.blob-1 {
    background: #00f0ff !important; /* Cyan */
    top: -25px !important;
    left: -15px !important;
    animation: siriBlobMove1 4s ease-in-out infinite alternate !important;
}

.siri-blob.blob-2 {
    background: #ff007f !important; /* Pink */
    bottom: -25px !important;
    right: -15px !important;
    animation: siriBlobMove2 4.5s ease-in-out infinite alternate !important;
}

.siri-blob.blob-3 {
    background: #7f00ff !important; /* Purple */
    top: -15px !important;
    right: 25px !important;
    animation: siriBlobMove3 3.5s ease-in-out infinite alternate !important;
}

@keyframes siriBlobMove1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(90px, 15px) scale(1.4); }
}

@keyframes siriBlobMove2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-90px, -15px) scale(1.3); }
}

@keyframes siriBlobMove3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-35px, 25px) scale(1.5); }
}

@media (max-width: 768px) {
    .siri-glass-btn {
        bottom: 20px !important;
        padding: 8px 16px !important;
        font-size: 12.5px !important;
        border-radius: 25px !important;
    }
}
