/* ============================================
   DIA MICROPEN - ORGANIZED STYLESHEET
   ============================================ */

/* ============================================
   1. CSS VARIABLES (добавьте в :root если есть)
   ============================================ */
   :root {
    --primary-color: #0d775e;
    --primary-light: #31a56d;
    --text-dark: #2c3e50;
    --text-muted: #546e7a;
    --text-secondary: #696969;
    --bg-light: #f8f9fa;
    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ============================================
   2. FUNCTIONS GRID & CARDS
   ============================================ */

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.function-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-light) 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

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

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

.function-icon {
    width: 40px;
    height: 40px;
    background: #f3f3f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8d8d;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 12px;
}

.function-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.function-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
}

.function-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.function-tag {
    background: #efefef;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   3. CONNECT+ SECTION
   ============================================ */

.connect-plus-section {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.connect-plus-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.1) 0%, transparent 70%);
}

.connect-plus-title {
    font-size: 32px;
    font-weight: 300;
    color: #64b5f6;
    margin-bottom: 15px;
}

.connect-plus-subtitle {
    font-size: 18px;
    color: #90a4ae;
    margin-bottom: 30px;
    max-width: 800px;
}

.connect-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.connect-feature {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-feature-icon {
    font-size: 24px;
    color: #64b5f6;
    margin-bottom: 10px;
}

.connect-feature-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.connect-feature-desc {
    font-size: 14px;
    color: #90a4ae;
    line-height: 1.4;
}

.connect-price {
    background: rgba(100, 181, 246, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.connect-price-amount {
    font-size: 48px;
    font-weight: 300;
    color: #64b5f6;
    line-height: 1;
    margin: 10px 0;
}

.connect-price-period {
    color: #90a4ae;
    font-size: 16px;
}

.connect-benefits {
    margin-top: 25px;
    font-size: 14px;
    color: #90a4ae;
}

.order-process-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.order-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.order-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.order-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.order-steps li:last-child {
    margin-bottom: 0;
}

.kit-short-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.kit-short-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.kit-short-list li:last-child {
    border-bottom: none;
}

.price-tag {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   RECOMMENDED PRODUCTS SECTION
   ============================================ */

   .recommended-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recommended-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.category-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

.recommended-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.recommended-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.recommended-card.premium {
    border-color: #ffd700;
}

.recommended-card.optimal {
    border-color: var(--primary-color);
}

.recommended-card.budget {
    border-color: #6c757d;
}

.recommended-badge {
    position: absolute;
    top: 55px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.recommended-card.premium .recommended-badge {
    background: #ffd700;
    color: #333;
}

.recommended-card.budget .recommended-badge {
    background: #6c757d;
}

.recommended-image {
    width: 100%;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recommended-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.05);
}

.recommended-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recommended-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.recommended-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.recommended-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recommended-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.recommended-meta span {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.recommended-type-badge {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.search-hint {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.search-hint i {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .recommended-section {
        padding: 25px;
    }
    
    .recommended-image {
        height: 180px;
    }
    
    .category-title {
        font-size: 18px;
    }
}

/* ============================================
   CHARGER COMPARISON - UPDATED
   ============================================ */

   .recommended-best {
    border: 3px solid #17a2b8 !important;
    position: relative;
}

.recommended-best::before {
    content: '★ РЕКОМЕНДУЕМ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #17a2b8;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

.recommended-why {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #c3e6cb;
}

.highlight-row {
    background: rgba(23, 162, 184, 0.05);
}

.highlight-row td {
    padding: 20px 10px !important;
}

.highlight-row .recommended-col {
    background: rgba(23, 162, 184, 0.1) !important;
}

/* Comparison Table */
.charger-comparison {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comparison-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.comparison-table {
    margin-bottom: 0;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    border-top: none;
    padding: 15px 10px;
    vertical-align: middle;
}

.comparison-table td {
    padding: 12px 10px;
    vertical-align: middle;
    border-color: #e9ecef;
}

.recommended-col {
    background: rgba(23, 162, 184, 0.03);
    border-left: 2px solid #17a2b8;
    border-right: 2px solid #17a2b8;
}

.comparison-table tr:hover .recommended-col {
    background: rgba(23, 162, 184, 0.08);
}

.price-row td {
    background: #f8f9fa;
    font-size: 16px;
    padding: 15px 10px !important;
}

.price-row .recommended-col {
    background: rgba(23, 162, 184, 0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .recommended-best::before {
        font-size: 11px;
        padding: 4px 15px;
    }
    
    .comparison-table {
        font-size: 13px;
    }
    
    .comparison-table td, 
    .comparison-table th {
        padding: 10px 5px;
    }
    
    .highlight-row td {
        padding: 15px 5px !important;
    }
}

/* ============================================
   4. TABS WITH ICONS - CSS ONLY
   ============================================ */

.tab-with-icons {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.tab-with-icons .nav-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0.6;
    transition: var(--transition);
    padding: 15px;
}

.tab-with-icons .nav-link:hover,
.tab-with-icons .nav-link:focus {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
}

.tab-with-icons .nav-link:hover .tab-text {
    color: #000000;
}

.tab-with-icons .nav-link.active {
    pointer-events: auto;
    opacity: 1;
}

.tab-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
    border: 1px solid #00000029;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-with-icons .nav-link.active .tab-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.tab-with-icons .nav-link:hover .tab-icon {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.tab-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.tab-with-icons .nav-link.active .tab-text,
.tab-with-icons .nav-link:hover .tab-text {
    color: #000000;
    font-weight: 600;
}

.tab-with-icons .nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* CSS-only tabs via :target */
.tab-content-css {
    position: relative;
}

.tab-pane-css {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane-css:target {
    display: block;
}

.tab-content-css:not(:has(.tab-pane-css:target)) #description {
    display: block;
}

/* Active tab states via :has */
body:has(#description:target) .tab-with-icons .nav-link[href="#description"],
body:has(#features:target) .tab-with-icons .nav-link[href="#features"],
body:has(#compatibility:target) .tab-with-icons .nav-link[href="#compatibility"],
body:has(#connect:target) .tab-with-icons .nav-link[href="#connect"],
body:has(#order:target) .tab-with-icons .nav-link[href="#order"] {
    opacity: 1;
}

body:has(#description:target) .tab-with-icons .nav-link[href="#description"] .tab-icon,
body:has(#features:target) .tab-with-icons .nav-link[href="#features"] .tab-icon,
body:has(#compatibility:target) .tab-with-icons .nav-link[href="#compatibility"] .tab-icon,
body:has(#connect:target) .tab-with-icons .nav-link[href="#connect"] .tab-icon,
body:has(#order:target) .tab-with-icons .nav-link[href="#order"] .tab-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

body:has(#description:target) .tab-with-icons .nav-link[href="#description"] .tab-text,
body:has(#features:target) .tab-with-icons .nav-link[href="#features"] .tab-text,
body:has(#compatibility:target) .tab-with-icons .nav-link[href="#compatibility"] .tab-text,
body:has(#connect:target) .tab-with-icons .nav-link[href="#connect"] .tab-text,
body:has(#order:target) .tab-with-icons .nav-link[href="#order"] .tab-text {
    color: #000000;
    font-weight: 600;
}

/* Default active state */
body:not(:has(.tab-pane-css:target)) .tab-with-icons .nav-link[href="#description"] {
    opacity: 1;
}

body:not(:has(.tab-pane-css:target)) .tab-with-icons .nav-link[href="#description"] .tab-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

body:not(:has(.tab-pane-css:target)) .tab-with-icons .nav-link[href="#description"] .tab-text {
    color: #000000;
    font-weight: 600;
}

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

/* ============================================
   5. GLASS CARDS
   ============================================ */

.about-product-wrapper {
    text-decoration: none;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.product-content.glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-content.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        rgba(255, 255, 255, 0.8) 80%, 
        transparent 100%);
    z-index: 1;
}

.about-product-wrapper:hover .product-content.glass-card {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.315);
    background: rgba(255, 255, 255, 0.95);
}

.product-content.glass-card .product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.product-content.glass-card .product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #000000, transparent);
    border-radius: 2px;
}

.product-content.glass-card .product-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   6. COMPARE & SPECIFICATION CARDS
   ============================================ */

.compare-card {
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #5e626f29;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 8px;
}

/* ============================================
   7. INSULIN TYPES GRID
   ============================================ */

.insulin-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.insulin-type-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-light) 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.insulin-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.insulin-type-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insulin-type-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.insulin-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insulin-type-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.insulin-type-list li:last-child {
    border-bottom: none;
}

.insulin-type-list li i {
    color: var(--primary-light);
    font-size: 12px;
}

/* ============================================
   KIT (КОМПЛЕКТАЦИЯ) STYLES
   ============================================ */

   .kit-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.kit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.kit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.kit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.kit-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.kit-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.kit-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.kit-list li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Notice cards */
.kit-notices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.notice-card {
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid;
}

.notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.notice-purple {
    background: #f3e5f5;
    border-color: #9c27b0;
    color: #6a1b9a;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.notice-header i {
    font-size: 20px;
}

/* Addon cards */
.addon-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.addon-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.addon-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 28px;
}

.addon-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.addon-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.addon-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   WARRANTY (ГАРАНТИЯ) STYLES
   ============================================ */

.warranty-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.warranty-badge {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.warranty-badge i {
    font-size: 40px;
    margin-bottom: 5px;
}

.warranty-badge span {
    font-size: 14px;
    font-weight: 600;
}

.warranty-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.warranty-header .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Critical alert */
.alert-critical {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.alert-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.alert-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.alert-content p {
    margin: 0;
    opacity: 0.95;
}

/* Warranty sections */
.warranty-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

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

.case-card {
    display: flex;
    gap: 15px;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateX(5px);
}

.case-danger {
    background: #fff5f5;
    border-color: #dc3545;
}

.case-success {
    background: #f0fff4;
    border-color: #28a745;
}

.case-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.case-danger .case-icon {
    background: #dc3545;
    color: white;
}

.case-success .case-icon {
    background: #28a745;
    color: white;
}

.case-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.case-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.case-warning {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 5px !important;
}

/* Terms card */
.terms-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--primary-color);
}

.terms-card h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.terms-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.terms-card li:last-child {
    border-bottom: none;
}

/* ============================================
   TAB STATES FOR NEW TABS (CSS :target)
   ============================================ */

body:has(#kit:target) .tab-with-icons .nav-link[href="#kit"],
body:has(#warranty:target) .tab-with-icons .nav-link[href="#warranty"] {
    opacity: 1;
}

body:has(#kit:target) .tab-with-icons .nav-link[href="#kit"] .tab-icon,
body:has(#warranty:target) .tab-with-icons .nav-link[href="#warranty"] .tab-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

body:has(#kit:target) .tab-with-icons .nav-link[href="#kit"] .tab-text,
body:has(#warranty:target) .tab-with-icons .nav-link[href="#warranty"] .tab-text {
    color: #000000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .kit-section {
        padding: 25px;
    }
    
    .kit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .kit-icon {
        margin: 0 auto;
    }
    
    .alert-critical {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-icon {
        margin: 0 auto;
    }
    
    .case-card {
        flex-direction: column;
    }
    
    .case-icon {
        margin: 0 auto;
    }
}

/* ============================================
   8. STEP HIGHLIGHT BOX
   ============================================ */

.step-highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.step-highlight-box::before {
    content: '0.1';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 180px;
    font-weight: 700;
    opacity: 0.1;
    line-height: 1;
}

.step-highlight-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-highlight-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 70%;
}

/* ============================================
   9. PRODUCT GALLERY SWIPER
   ============================================ */

/* Large screens - fixed height */
@media (min-width: 992px) {
    .product-gallery-swiper2 {
        max-height: 750px;
    }
    
    .product-gallery-swiper2 .dz-media {
        height: 750px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-light);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .product-gallery-swiper2 .dz-media img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .thumb-swiper-lg {
        max-width: 750px;
        margin: 20px auto 0;
    }
    
    .thumb-swiper-lg .swiper-slide {
        width: 100px !important;
        height: 100px;
    }
}

/* Mobile - aspect ratio */
@media (max-width: 991px) {
    .product-gallery-swiper2 .dz-media {
        position: relative;
        padding-bottom: 100%;
        height: 0;
        overflow: hidden;
        background: var(--bg-light);
        border-radius: 8px;
    }
    
    .product-gallery-swiper2 .dz-media img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Thumbnails - all screens */
.thumb-swiper-lg {
    max-width: 100%;
    margin-top: 15px;
}

.thumb-swiper-lg .swiper-slide {
    width: 70px !important;
    height: 70px;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.thumb-swiper-lg .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-swiper-lg .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* ============================================
   10. RESPONSIVE - TABLETS
   ============================================ */

@media (max-width: 992px) {
    /* Tabs */
    .tab-with-icons .nav-link {
        padding: 15px 10px;
    }
    
    .tab-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Connect+ */
    .connect-plus-section {
        padding: 30px;
    }
    
    .connect-plus-title {
        font-size: 28px;
    }
    
    .connect-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Functions */
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   11. RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Functions */
    .functions-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tabs */
    .tab-with-icons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .tab-with-icons .nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .tab-with-icons .nav-link {
        min-width: 100px;
        padding: 12px 8px;
    }
    
    .tab-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Connect+ */
    .connect-plus-section {
        padding: 25px;
    }
    
    .connect-plus-title {
        font-size: 24px;
    }
    
    .connect-features {
        grid-template-columns: 1fr;
    }
    
    .connect-price-amount {
        font-size: 36px;
    }
    
    /* Step highlight */
    .step-highlight-box {
        padding: 25px;
    }
    
    .step-highlight-title {
        font-size: 22px;
    }
    
    .step-highlight-text {
        max-width: 100%;
    }
    
    .step-highlight-box::before {
        font-size: 100px;
        right: -10px;
    }
    
    /* Insulin types */
    .insulin-types-grid {
        grid-template-columns: 1fr;
    }
    
    /* Glass cards in insulin grid */
    .col-xl-2.col-lg-3.col-md-4.col-sm-6 {
        margin-bottom: 20px;
    }
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

/* Remove Bootstrap overrides that interfere */
.tab-pane-css {
    opacity: 1 !important;
}

/* Animation utilities */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease forwards;
}