@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* SecosYa Appetizing Colors (PedidosYa Style) */
    --color-primary: #EA044E; /* Rojo PedidosYa */
    --color-secondary: #FFC107; /* Amarillo para resaltar */
    --color-text: #212121; /* Texto Oscuro */
    --color-accent-1: #D84315; /* Naranja Quemado */
    --color-accent-2: #FFF8E1; /* Crema Cálido */
    --color-dark: #1a1a1a;
    --color-light: #FFFAFA; /* Blanco muy sutilmente cálido */
    --color-white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-hover: 0 15px 40px rgba(234, 4, 78, 0.15); /* Shadow actualizada al rojo */
    --glass-bg: rgba(253, 251, 247, 0.85);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
}

.brand-font {
    font-family: var(--font-heading);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(155, 27, 48, 0.1);
}

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

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}
.header-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}
.header-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}
.header-nav a:hover::after {
    width: 100%;
}
.header-nav a:hover {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    margin-left: 20px;
    z-index: 1001; /* Above mobile nav */
}
.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: var(--transition);
}
.logo-container:hover {
    transform: scale(1.02);
}
.logo {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-heading);
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
.logo-sub {
    font-size: 1.05rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 3px;
    text-transform: lowercase;
    margin-top: 3px;
    margin-left: 2px;
}

/* Reseller Badge */
.reseller-badge {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 75vh;
    background: url('../fotos_de_productos/hero_bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}
.hero-content h1 {
    color: var(--color-white); /* Texto blanco para destacar en brillo dorado */
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.9), 0px 0px 10px rgba(0,0,0,0.7);
}
.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.9);
}
.hero-cta {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 3px solid transparent;
    display: inline-block;
}
.hero-cta:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-white);
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(155, 27, 48, 0.3);
}

.btn-primary:hover {
    background-color: #7a1526;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 27, 48, 0.4);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: #f9a825;
    transform: translateY(-2px);
}

/* Cards (Products) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 240px;
    background-color: var(--color-accent-2);
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.product-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-family: var(--font-body);
}

/* History Section */
.history-section {
    padding: 60px 0;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}
.history-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}
.history-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #555;
}
.history-timeline {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.history-node {
    background: var(--color-light);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border-top: 4px solid var(--color-accent-1);
}
.history-node h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Admin Dashboard Specifics */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 65px);
}

.sidebar {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px 20px;
}

.sidebar-nav ul {
    list-style: none;
    margin-top: 30px;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.admin-content {
    padding: 40px;
    background: var(--color-light);
}

/* Glassmorphism Forms */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.1);
    background: white;
}

/* Tables for Admin */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.data-table th, .data-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.data-table tr:hover {
    background-color: var(--color-light);
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pendiente { background-color: var(--color-secondary); color: var(--color-text); }
.badge-completado { background-color: #2e7d32; color: white; }
.badge-cancelado { background-color: var(--color-primary); color: white; }

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

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Cart Styles */
.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    transition: opacity 0.4s;
}

.cart-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.cart-modal-content {
    background: var(--color-light);
    width: 100%;
    max-width: 450px;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-modal-overlay.hidden .cart-modal-content {
    transform: translateX(100%);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

/* Breadcrumbs */
.breadcrumbs { padding: 15px 20px; font-size: 0.95rem; color: var(--color-text); border-bottom: 1px solid #eee; margin-bottom: 20px; }
.breadcrumbs a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #888; }

/* Cart Redesign */
.btn-large { padding: 16px 20px; font-size: 1.15rem; font-weight: 700; border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.form-control { border: 2px solid #e0e0e0; border-radius: 6px; padding: 12px; font-size: 1rem; transition: var(--transition); background: #fff; }
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); outline: none; }
.secure-payment-card { border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.secure-header { background: #f8f9fa; padding: 12px 15px; font-weight: 600; color: #2e7d32; border-bottom: 1px solid #e0e0e0; font-size: 0.95rem; }
.secure-body { padding: 15px; font-size: 0.9rem; color: #555; }
.bank-details { list-style: none; padding: 0; margin: 10px 0 0 0; }
.bank-details li { margin-bottom: 6px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 0.9rem; }
.bank-details span { font-weight: 600; color: var(--color-text); flex-shrink: 0; min-width: 60px; }
.cart-modal-content { box-shadow: -5px 0 25px rgba(0,0,0,0.5); }
#cartItems .cart-item { padding: 15px 0; border-bottom: 1px solid #eee; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cart Breadcrumbs Wizard */
.cart-breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 12px; background: #fff; border-bottom: 1px solid #eee; font-size: 0.95rem; font-weight: 500; }
.bc-step { color: #aaa; transition: var(--transition); cursor: pointer; padding: 5px 10px; border-radius: 4px; }
.bc-step.active { color: var(--color-primary); font-weight: 700; background: rgba(211,47,47,0.05); }
.bc-separator { color: #ccc; margin: 0 10px; }

/* Input Group and Cart Quantity */
.input-group { display: flex; align-items: stretch; }
.input-group-addon { white-space: nowrap; display: flex; align-items: center; justify-content: center; padding: 12px; background: #eee; border: 2px solid #e0e0e0; border-right: none; border-radius: 6px 0 0 6px; font-weight: 600; color: #555; }
.input-group .form-control { border-radius: 0 6px 6px 0; flex-grow: 1; }
.qty-btn { background: #eee; border: none; padding: 2px 10px; font-size: 1.2rem; cursor: pointer; border-radius: 4px; font-weight: bold; transition: var(--transition); }
.qty-btn:hover { background: var(--color-primary); color: white; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }

/* Nominatim Autocomplete */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #ccc; border-radius: 0 0 6px 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 1000; max-height: 200px; overflow-y: auto; list-style: none; padding: 0; margin: 0; }
.autocomplete-list li { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 0.9rem; color: #333; transition: background 0.2s; }
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover { background: #f5f5f5; color: var(--color-primary); }

/* Boton Secundario Volver */
.btn-back { background: #f1f3f5; color: #495057; border: 1px solid #ced4da; }
.btn-back:hover { background: #e9ecef; color: #212529; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* UI Compactation */
#checkoutForm .form-group { margin-bottom: 10px; }
#checkoutForm h4 { margin-bottom: 10px !important; }
.cart-modal-content { max-height: 95vh; }

/* RESPONSIVE DESIGN (Mobile First Adjustments) */
@media (max-width: 768px) {
    /* Header & Mobile Nav */
    .header-content { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }
    .hamburger-btn { display: flex; }
    
    .header-nav { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        max-width: 100%;
        height: 100dvh;
        background: rgba(234, 4, 78, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 30px;
        font-size: 1.5rem;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1);
    }
    .header-nav.active { right: 0; }
    
    .cart-text { display: none; }
    .cart-btn-header { padding: 8px; font-size: 0.9rem; }
    .admin-btn-header { padding: 8px; font-size: 0.9rem; }
    .logo { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-cta { font-size: 1rem; padding: 10px 20px; }
    
    /* Product Grid */
    .product-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 0; }
    
    /* Cart Items Responsive */
    .cart-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cart-item > div:last-child { width: 100%; justify-content: space-between; }
    .cart-item .input-group { width: auto; }
    
    /* Admin Dashboard Mobile UX */
    .admin-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; max-width: 100vw; overflow-x: hidden; }
    .sidebar { width: 100%; max-width: 100vw; height: auto; padding: 10px; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.2); box-sizing: border-box; overflow: hidden; }
    
    /* Topbar Responsiva */
    .admin-topbar { flex-direction: column; align-items: stretch !important; gap: 10px; padding: 15px !important; }
    .topbar-utils { flex-wrap: wrap; justify-content: center; width: 100%; }
    .topbar-utils .btn { flex-grow: 1; text-align: center; }
    #qa-tools { border-left: none !important; border-top: 1px solid #eee; padding-left: 0 !important; margin-left: 0 !important; padding-top: 10px; width: 100%; justify-content: space-between; }
    .user-menu { margin-left: 0 !important; width: 100%; justify-content: space-between; margin-top: 5px; }
    
    /* Nav horizontal con scroll táctil (App-like) */
    .sidebar-nav ul { 
        margin-top: 0; 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        gap: 8px; 
        padding-bottom: 5px; 
        -webkit-overflow-scrolling: touch; 
        scroll-snap-type: x mandatory; 
    }
    .sidebar-nav ul::-webkit-scrollbar { height: 4px; }
    .sidebar-nav ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
    .sidebar-nav li { scroll-snap-align: start; margin-bottom: 0; }
    .sidebar-nav a { white-space: nowrap; padding: 10px 15px; font-size: 0.9rem; }
    
    .admin-content { padding: 15px; max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
    
    /* Tables Responsive Wrapper */
    .data-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 0.8rem; width: 100%; }
    .data-table th, .data-table td { padding: 10px; }
    
    /* Cart Modal */
    .cart-modal-content { max-width: 100%; }
    .cart-breadcrumbs { font-size: 0.8rem; flex-wrap: wrap; text-align: center; justify-content: center; }
}

/* Live Validation Visual Feedback */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* ═══════════════════════════════════════════════════════════ */
/* SMTP Configuration Panel Styles                            */
/* ═══════════════════════════════════════════════════════════ */

.smtp-config-panel { max-width: 960px; }

.smtp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Status Badge */
.smtp-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
    transition: var(--transition);
}
.smtp-status-badge.configured {
    background: #e8f5e9;
    color: #2e7d32;
}
.smtp-status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}
.smtp-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #999;
    display: inline-block;
}
.smtp-status-dot.configured { background: #28a745; box-shadow: 0 0 8px rgba(40,167,69,0.5); }
.smtp-status-dot.pending { background: #ff9800; animation: pulse-dot 1.5s infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Tabs */
.smtp-tabs {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 0;
}
.smtp-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.smtp-tab:hover { background: #eee; color: var(--color-text); }
.smtp-tab.active {
    background: white;
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* Tab Content */
.smtp-tab-content {
    display: none;
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.smtp-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Sections */
.smtp-section {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.smtp-section h3 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.smtp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.smtp-section-header h3 { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

/* Form Grid */
.smtp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.smtp-form-grid .form-group { margin-bottom: 0; }

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #888;
}
.field-hint code {
    background: #e8e8e8;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.85em;
}
.required { color: var(--color-primary); }

/* Password Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}
.password-input-wrapper .form-control {
    padding-right: 45px;
    flex: 1;
}
.password-toggle-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
}
.password-toggle-btn:hover { background: #f0f0f0; }

/* Instruction Box */
.smtp-instruction-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    font-size: 0.9rem;
    line-height: 1.7;
}
.smtp-instruction-box ol { margin: 10px 0; padding-left: 20px; }
.smtp-instruction-box li { margin-bottom: 6px; }
.smtp-instruction-box code {
    background: #f5f0ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #6a1b9a;
}

/* Tips */
.smtp-tip {
    background: #e8f5e9;
    border-left: 4px solid #28a745;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 12px;
    font-size: 0.88rem;
    color: #2e7d32;
}

/* Alerts */
.smtp-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.smtp-alert-warning {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    color: #e65100;
}

/* Actions */
.smtp-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Toggle Switch */
.smtp-check-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.smtp-check-toggle input[type="checkbox"] { display: none; }
.smtp-check-slider {
    width: 42px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}
.smtp-check-slider::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.smtp-check-toggle input:checked + .smtp-check-slider { background: #28a745; }
.smtp-check-toggle input:checked + .smtp-check-slider::after { left: 22px; }
.smtp-check-label { font-size: 0.85rem; font-weight: 500; color: #555; }

/* DNS Checklist Items */
.dns-checklist-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.dns-checklist-item:hover { border-color: #bbb; }
.dns-checklist-item.expanded { border-color: var(--color-primary); box-shadow: 0 4px 15px rgba(211,47,47,0.08); }

.dns-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    cursor: pointer;
    transition: var(--transition);
}
.dns-checklist-header:hover { background: #fafafa; }
.dns-checklist-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dns-expand-icon {
    font-size: 0.8rem;
    color: #999;
    transition: var(--transition);
}
.dns-checklist-item.expanded .dns-expand-icon { color: var(--color-primary); }

/* Priority Badges */
.dns-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}
.dns-priority.critical { background: #ffebee; color: #c62828; }
.dns-priority.high { background: #fff3e0; color: #e65100; }
.dns-priority.medium { background: #e3f2fd; color: #1565c0; }

/* DNS Detail */
.dns-checklist-detail {
    padding: 0 18px 18px;
    border-top: 1px solid #f0f0f0;
    animation: fadeIn 0.3s ease;
}
.dns-purpose {
    background: #f5f5f5;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: #555;
}
.dns-checklist-detail ol { padding-left: 20px; margin: 10px 0; }
.dns-checklist-detail li { margin-bottom: 6px; font-size: 0.9rem; line-height: 1.6; }
.dns-checklist-detail code {
    background: #f5f0ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    color: #6a1b9a;
}

/* DNS Record Box (Copyable) */
.dns-record-box {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dns-record-box code {
    color: #00e676;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
}
.btn-copy {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-copy:hover { background: rgba(255,255,255,0.25); }

/* DNS Summary Progress Bar */
.dns-summary {
    margin-top: 20px;
    text-align: center;
}
.dns-summary-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dns-summary-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease, background 0.3s ease;
}
.dns-summary p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Test Results */
.smtp-test-section {
    border-top: 3px dashed #eee;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
}
.smtp-test-result {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}
.smtp-test-result.success {
    background: #e8f5e9;
    border-left: 5px solid #28a745;
    color: #2e7d32;
}
.smtp-test-result.error {
    background: #ffebee;
    border-left: 5px solid #c62828;
    color: #c62828;
}
.smtp-debug-output {
    margin-top: 10px;
    padding: 15px;
    background: #263238;
    color: #b2dfdb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Guide Cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.guide-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.guide-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.guide-card h4 { margin: 0 0 10px; font-size: 1rem; color: var(--color-text); }
.guide-card ul { padding-left: 18px; margin: 0; }
.guide-card li { font-size: 0.85rem; margin-bottom: 5px; color: #555; line-height: 1.5; }
.guide-card a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.guide-card a:hover { text-decoration: underline; }
.guide-card code { background: #f5f0ff; padding: 1px 5px; border-radius: 3px; font-size: 0.85em; color: #6a1b9a; }

.guide-card-green { border-top: 3px solid #28a745; }
.guide-card-yellow { border-top: 3px solid #ff9800; }
.guide-card-blue { border-top: 3px solid #1976d2; }

/* Responsive SMTP */
@media (max-width: 768px) {
    .smtp-form-grid { grid-template-columns: 1fr; }
    .smtp-tabs { flex-direction: column; }
    .smtp-tab { text-align: center; }
    .smtp-header { flex-direction: column; align-items: flex-start; }
    .dns-record-box { flex-direction: column; }
    .dns-record-box code { word-break: break-all; }
    .guide-cards { grid-template-columns: 1fr; }
    .smtp-section-header { flex-direction: column; align-items: flex-start; }
}


/* Out of Stock Sash */
.out-of-stock-container { position: relative; overflow: hidden; }
.out-of-stock-sash { position: absolute; top: 25px; right: -35px; background: #EA044E; color: white; padding: 5px 40px; transform: rotate(45deg); font-weight: bold; font-size: 0.9rem; box-shadow: 0 2px 4px rgba(0,0,0,0.3); z-index: 10; text-transform: uppercase; pointer-events: none; letter-spacing: 1px; }
