/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
    --sidebar-bg: #1e293b; 
    --sidebar-text: #94a3b8; 
    --sidebar-hover: #334155;
    --active-color: #3b82f6;
    
    --body-bg: #f1f5f9; 
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --alert-bg: #fff7ed;
    --alert-border: #fdba74;
    --alert-text: #9a3412; 
    
    --success-bg: #dcfce7;
    --success-text: #166534;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background-color: var(--body-bg);
    display: flex;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    max-width: 100%;
}

/* =========================================
   2. LAYOUT (SIDEBAR, NAVBAR, CONTENT)
   ========================================= */

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    z-index: 90;
}

.brand {
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    padding-top: 20px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--sidebar-text);
    font-size: 15px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--sidebar-hover);
    color: white;
    border-left-color: var(--active-color);
}

.nav-icon { margin-right: 10px; width: 20px; text-align: center; }

/* --- Top Navbar --- */
.top-navbar {
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100% - 260px);
    height: 70px;
    
    /* Warstwowy background: gradient + obrazek */
    background: 
        linear-gradient(90deg, #ffffff 20%, rgba(255,255,255,0) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center bottom;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.top-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: white; 
    
    /* Efekt szkła (Glassmorphism) */
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(4px);            
    padding: 6px 20px;                 
    border-radius: 30px;               
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);     
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #eff6ff;
    color: var(--active-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.btn-logout {
    color: #fca5a5;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-left: 10px;
    transition: 0.2s;
}

.btn-logout:hover { color: #ef4444; }

/* --- Main Content --- */
.main-content {
    margin-left: 260px;
    margin-top: 70px; /* Wysokość navbaru */
    flex: 1;
    padding: 30px;
}

.header-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* =========================================
   3. KOMPONENTY UI (Karty, Tabele, Alerty)
   ========================================= */

/* --- Karty i Grid --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color); /* Dodano dla spójności */
}

/* --- Statystyki --- */
.stat-card-content { /* Pomocnicza klasa do układu wewnątrz karty statystyk */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.stat-number { font-size: 36px; font-weight: bold; color: var(--text-main); }
.stat-label { color: var(--text-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.icon-bg {
    background: #eff6ff;
    color: var(--active-color);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

/* --- Alerty --- */
.card-alert {
    background-color: var(--alert-bg);
    border: 1px solid var(--alert-border);
    border-left: 5px solid orange;
    padding: 20px;
    border-radius: 8px;
    color: var(--alert-text);
}
.card-alert h3 { font-size: 16px; margin-bottom: 10px; }
.card-alert p { font-size: 14px; margin-bottom: 15px; }
.btn-renew {
    text-decoration: none;
    font-weight: bold;
    color: #c2410c;
    font-size: 13px;
    text-transform: uppercase;
}

/* --- Tabele --- */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow-x: auto;
}
.table-header { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; border-bottom: 2px solid #e2e8f0; color: var(--text-muted); font-size: 14px; }
td { padding: 15px; border-bottom: 1px solid #e2e8f0; color: var(--text-main); font-size: 14px; }
.status-dot { height: 10px; width: 10px; background-color: #22c55e; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* =========================================
   4. MODUŁ: DOMENY (Wyszukiwarka, Lista, Opcje)
   ========================================= */

/* --- Opcje Wyboru (Kafelki jak Home.pl) --- */
.domain-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.option-card.active {
    border-color: var(--active-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    background-color: #fff;
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-card.active .custom-radio { border-color: var(--active-color); }
.option-card.active .custom-radio::after {
    content: '';
    width: 10px; height: 10px;
    background-color: var(--active-color);
    border-radius: 50%;
    display: block;
}

.option-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.option-card.active .option-title { color: var(--active-color); }
.option-scope-badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 2px 0 12px 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--active-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}
.option-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* --- Sekcja Wyszukiwarki --- */
.search-section-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.search-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.search-input-group {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.domain-input {
    width: 100%;
    height: 55px;
    padding: 0 20px 0 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    background: #f8fafc;
}

.domain-input:focus {
    border-color: var(--active-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    background-color: var(--active-color);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search:hover { background-color: var(--sidebar-hover); }

/* --- Lista Wyników Wyszukiwania --- */
.domain-results-list {
    display: flex;
    flex-direction: column;
}

.domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
    gap: 15px;
}

.domain-row:last-child { border-bottom: none; }
.domain-row:hover { background-color: #f8fafc; }

/* Kolumny w wierszu (Fix na rozjeżdżanie) */
.domain-left-col {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.domain-right-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 20px;
    min-width: 250px; /* Gwarancja miejsca na cenę i przycisk */
}

/* Elementy wiersza */
.domain-icon-wrapper {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; flex-shrink: 0;
}
.domain-icon-avail { background: var(--success-bg); color: var(--success-text); }
.domain-icon-taken { background: #f1f5f9; color: var(--text-muted); }

.domain-name { font-size: 18px; font-weight: 600; color: var(--text-main); }

.badge-status {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    margin-left: 15px; letter-spacing: 0.5px;
}
.badge-avail { background-color: var(--success-bg); color: var(--success-text); }
.badge-taken { background-color: #f1f5f9; color: var(--text-muted); }

.price-block { text-align: right; }
.price-tag { font-size: 20px; font-weight: 700; color: var(--text-main); }
.renew-info { font-size: 12px; color: var(--text-muted); }

/* --- Przyciski Akcji --- */
.btn-action {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-buy {
    background-color: white;
    border: 1px solid var(--active-color);
    color: var(--active-color);
}
.btn-buy:hover { background-color: var(--active-color); color: white; }

.btn-disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border: none;
    cursor: not-allowed;
}

.whois-link {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 15px;
    text-decoration: underline;
}
.whois-link:hover { color: var(--active-color); }

/* --- Checkboxy (Multi-Select) --- */
.custom-checkbox {
    width: 22px; height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    background: white;
    flex-shrink: 0;
}
.custom-checkbox.checked {
    background-color: var(--active-color);
    border-color: var(--active-color);
    color: white;
}
.hidden-checkbox { display: none; }

/* --- Pływający pasek dolny (Bulk Action) --- */
.bulk-action-bar {
    position: fixed;
    bottom: -100px; /* Ukryty */
    left: 260px;
    right: 0;
    background: white;
    padding: 15px 40px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.bulk-action-bar.visible { bottom: 0; }

.bulk-summary { font-size: 16px; color: var(--text-main); }
.bulk-total { font-weight: 700; font-size: 20px; color: var(--active-color); margin-left: 10px; }

/* --- Load More & Empty States --- */
.load-more-container {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}
.btn-load-more {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-load-more:hover {
    border-color: var(--active-color);
    color: var(--active-color);
    background: #eff6ff;
}
.hidden-row { display: none; }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon {
    width: 60px; height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: #94a3b8;
    font-size: 24px;
}
/* =========================================
   5. HERO RESULT (GŁÓWNY WYNIK WYSZUKIWANIA)
   ========================================= */

.hero-result-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* Warianty kolorystyczne */
.hero-available {
    border: 2px solid var(--success-bg);
    background: #f0fdf4; /* Bardzo jasny zielony */
}

.hero-transfer-direct {
    border: 2px solid #dbeafe;
    background: #f8fbff;
}

.hero-taken {
    border: 2px solid #e2e8f0;
    background: white;
}

/* Ikona z lewej (w kółku) */
.hero-icon-box {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}
.hero-available .hero-icon-box { background: var(--success-bg); color: var(--success-text); }
.hero-transfer-direct .hero-icon-box { background: #dbeafe; color: var(--active-color); }
.hero-taken .hero-icon-box { background: #f1f5f9; color: #94a3b8; }

/* Środek (Tekst) */
.hero-content { flex-grow: 1; }
.hero-domain-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}
.hero-domain-name span { color: var(--active-color); } /* Kropka i rozszerzenie */

.hero-status-text { font-size: 15px; font-weight: 500; }
.hero-available .hero-status-text { color: var(--success-text); }
.hero-transfer-direct .hero-status-text { color: #1e3a8a; }
.hero-taken .hero-status-text { color: #64748b; text-decoration: underline; cursor: pointer; }

.hero-transfer-direct .hero-domain-name { color: var(--text-main); }

.transfer-validation-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.transfer-validation-note-strong {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

.transfer-validation-underline {
    text-decoration: underline;
}

.transfer-price-fee-note {
    font-size: 12px;
    color: var(--text-main);
    margin-top: 4px;
    font-weight: 600;
}

.transfer-price-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

.transfer-submit-btn-validated {
    background: #22c55e;
}

.transfer-submit-btn-direct {
    background: var(--active-color);
}

.transfer-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
    text-align: center;
}

/* Prawa strona (Cena i Przycisk) */
.hero-actions {
    text-align: right;
    min-width: 200px;
}

.hero-price-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}
.hero-price-netto { font-size: 12px; color: #94a3b8; text-transform: uppercase; }

.btn-hero {
    margin-top: 15px;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nagłówek sekcji "Inne" */
.suggestions-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-main);
}
.suggestions-header h3 { font-size: 20px; font-weight: 600; margin: 0; }
.suggestions-line { flex-grow: 1; height: 1px; background: #e2e8f0; }

/* =========================================
   6. FRONTEND (STRONA GŁÓWNA)
   ========================================= */
.front-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
.front-nav-links {
    display: flex; gap: 30px; list-style: none; align-items: center;
}
.front-nav-links a {
    text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: 0.2s;
}
.front-nav-links a:hover { color: var(--active-color); }

.front-hero {
    margin-top: 80px;
    padding: 100px 20px;
    text-align: center;
    color: white;
    
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%),
        url('https://images.unsplash.com/photo-1534088568595-a066f410bcda?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt Parallax! */
}
.front-hero h1 { font-size: 46px; margin-bottom: 20px; font-weight: 800; }
.front-hero p { font-size: 18px; color: #94a3b8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.front-search-box {
    max-width: 800px; margin: 0 auto; background: white; padding: 10px; border-radius: 12px;
    display: flex; gap: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative;
}
.front-search-input {
    flex-grow: 1; border: none; padding: 15px 20px; font-size: 18px; outline: none; border-radius: 8px; color: var(--text-main);
}
.front-search-btn {
    background: #ef4444; color: white; border: none; padding: 0 40px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.front-search-btn:hover { background: #dc2626; }

.front-result-box {
    max-width: 800px; margin: 20px auto 0; border-radius: 12px; padding: 25px; display: none; text-align: left; align-items: center; justify-content: space-between;
}
.front-result-avail { background: #dcfce7; border: 2px solid #22c55e; color: #166534; }
.front-result-taken { background: #f1f5f9; border: 2px solid #cbd5e1; color: var(--text-muted); }

.front-features {
    padding: 80px 50px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.front-feature-card {
    background: white; padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; transition: 0.3s;
}
.front-feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--active-color); }


.domain-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.management-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.management-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.management-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

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

.action-tile {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.action-tile:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tile-icon-wrapper {
    width: 50px; height: 50px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--active-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Treść kafelka */
.tile-content { flex-grow: 1; }
.tile-title { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 5px; }
.tile-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Modal (Pop-up) w stylu Panelu */
.dns-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 9999;
    align-items: center; justify-content: center;
}

.dns-modal-content {
    background: white; width: 100%; max-width: 480px; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); overflow: hidden;
}

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

.dns-modal-header h3 { margin: 0; font-size: 18px; color: var(--text-main); }
.dns-close-modal { font-size: 24px; color: #94a3b8; cursor: pointer; transition: 0.2s; }
.dns-close-modal:hover { color: #ef4444; }

.dns-modal-body { padding: 30px 25px; }
.dns-response-box { font-size: 13px; margin-top: 15px; padding: 10px; border-radius: 6px; display: none; }

/* =========================================
   7. NOWE LOGO HAGATE I KOSZYK
   ========================================= */

/* Logo Hagate w Sidebarze (z obrazkiem) */
.brand-hagate {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: white;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
}

.brand-icon-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: -17px;
    margin-left: -10px;
}
/* Koszyk w górnym Navbarze */
.nav-cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.2s;
}

.nav-cart-wrapper:hover {
    color: var(--active-color);
}

.nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: none;
}

/* =========================================
   8. FRONT HERO - LOGO HAGATE
   ========================================= */

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

/* Blok logo nad hero */
.front-hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.front-hero-brand::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 140px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.22) 0%,
        rgba(139, 92, 246, 0.10) 45%,
        rgba(0, 0, 0, 0) 75%
    );
    filter: blur(22px);
    z-index: 0;
    pointer-events: none;
}

/* Ikona logo */
.front-hero-brand-icon {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    object-fit: contain;
    display: block;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 14px 32px rgba(59, 130, 246, 0.35));
}

/* Napis Hagate */
.front-hero-brand-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    line-height: 1;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1.4px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.front-hero-brand-main {
    color: #ffffff;
}

.front-hero-brand-accent {
    color: #c7dbff;
}

/* Delikatny responsywny downscale */
@media (max-width: 768px) {
    .front-hero-brand {
        gap: 10px;
        margin-bottom: 22px;
    }

    .front-hero-brand::before {
        width: 240px;
        height: 110px;
    }

    .front-hero-brand-icon {
        width: 58px;
        height: 58px;
    }

    .front-hero-brand-text {
        font-size: 34px;
        letter-spacing: -1px;
    }
}

@media (max-width: 480px) {
    .front-hero-brand-icon {
        width: 48px;
        height: 48px;
    }

    .front-hero-brand-text {
        font-size: 28px;
    }
}

/* ============================================================
   RWD — wyszukiwarka domen i wspolne komponenty (mobile)
   ============================================================ */
@media (max-width: 768px) {
    /* Karta wyniku wyszukiwania — ikona / tekst / cena ukladaja sie w pionie */
    .hero-result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px;
        text-align: left;
    }
    .hero-icon-box { width: 60px; height: 60px; font-size: 26px; }
    .hero-domain-name { font-size: clamp(22px, 6vw, 28px); word-break: break-word; }
    .hero-actions { min-width: 0; width: 100%; text-align: left; }
    .hero-price-large { font-size: 28px; }
    .btn-hero { padding: 14px 24px; }

    /* Lista propozycji — wiersz domeny w pionie zamiast jednego ciasnego rzedu */
    .domain-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    .domain-left-col { width: 100%; }
    .domain-name { word-break: break-all; }
    .domain-right-col {
        min-width: 0;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .suggestions-header h3 { font-size: 17px; }

    /* Pasek koszyka na dole — pelna szerokosc, kompaktowo, w pionie */
    .bulk-action-bar {
        left: 0 !important;
        padding: 12px 16px !important;
        flex-direction: column;
        gap: 10px;
    }
    .bulk-action-bar .btn-search,
    .bulk-action-bar > button { width: 100%; }
    .bulk-summary { font-size: 14px; text-align: center; }
}

/* ============================================================
   Cennik per domena: rejestracja / transfer / odnowienie
   Desktop: ceny pokazane wprost. Mobile (<=768px): rozwijany
   wybor ze strzalka (inline accordion - karty maja overflow:hidden,
   wiec NIE absolutny popover, bo by go ucinalo).
   ============================================================ */
.price-block-multi { text-align: right; }
.pbm-desktop .pbm-amount { font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1.1; }
.price-block-multi.is-big .pbm-desktop .pbm-amount { font-size: 32px; font-weight: 800; }
.pbm-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.price-block-multi.is-big .pbm-sub { font-size: 13px; margin-top: 6px; }
.pbm-sub b { color: var(--text-main); font-weight: 700; }

/* Wersja mobilna — domyslnie ukryta */
.pbm-mobile { display: none; }
.price-picker-amount { font-size: 24px; font-weight: 800; color: var(--text-main); line-height: 1.1; }
.price-picker-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f1f5f9; border: 1px solid var(--border-color);
    border-radius: 20px; padding: 6px 14px; margin-top: 8px;
    font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
}
.price-picker-toggle i { font-size: 11px; transition: transform 0.2s; }
.price-picker.open .price-picker-toggle i { transform: rotate(180deg); }
.price-picker-menu { display: none; margin-top: 8px; }
.price-picker.open .price-picker-menu { display: block; }
.price-picker-menu button {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    width: 100%; background: #fff; border: 1px solid var(--border-color);
    border-radius: 10px; padding: 11px 14px; margin-bottom: 6px; cursor: pointer;
    font-size: 14px; color: var(--text-main); font-weight: 600;
}
.price-picker-menu button:last-child { margin-bottom: 0; }
.price-picker-menu button:hover, .price-picker-menu button:active { background: #f8fafc; border-color: #cbd5e1; }
.price-picker-menu button b { color: var(--active-color); font-weight: 800; }

@media (max-width: 768px) {
    .pbm-desktop { display: none; }
    .pbm-mobile { display: block; }
    .price-block-multi { text-align: left; }
}

/* Cennik (tabela) — mobile: 3 kolumny cen chowamy, pokazujemy dropdown w 1 komorce */
.th-mobile, .td-mobile { display: none; }
@media (max-width: 768px) {
    .th-price, .td-price { display: none; }
    .th-mobile, .td-mobile { display: table-cell; vertical-align: middle; }
    #pricingTable th, #pricingTable td { padding: 14px 16px !important; }
    #pricingTable .tld-name { font-size: 16px !important; }
    #pricingTable .price-picker-amount { font-size: 20px; }
}

/* Koszyk — stopka (suma + przycisk realizacji) w pionie na telefonie, przycisk pelna szerokosc */
@media (max-width: 600px) {
    .cart-checkout-row { flex-direction: column; align-items: stretch !important; gap: 18px; }
    .cart-total-block { text-align: center !important; }
    .cart-checkout-row .btn-search { width: 100%; padding: 0 20px !important; }

    /* Wyszukiwarka na dashboardzie panelu - lupka+pole w jednym rzedzie, przycisk pod spodem.
       flex:1 1 0 (basis 0) sprawia, ze pole nie rosci sobie szerokosci tekstu i nie spycha lupki. */
    .dash-search-row { flex-wrap: wrap; align-items: center; }
    .dash-search-row input { flex: 1 1 0 !important; min-width: 0; font-size: 15px !important; padding: 12px 10px !important; }
    .dash-search-row button { flex: 1 1 100%; padding: 14px !important; }

    /* Panelowa wyszukiwarka domen (search-wrapper) - przycisk pod polem */
    .search-wrapper { flex-wrap: wrap; }
    .search-wrapper .search-input-group { flex: 1 1 100%; }
    .search-wrapper .btn-search { flex: 1 1 100%; width: 100%; }
}

/* ============================================================
   Panel (layout_main) — mobile: sidebar jako wysuwany drawer,
   uproszczony header, content na pelna szerokosc
   ============================================================ */
.panel-burger { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 860px) {
    /* Sidebar wysuwany z lewej (drawer), nad headerem */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 250px;
        z-index: 110;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
    }
    .sidebar.open { transform: translateX(0); }

    /* Tlo przyciemniajace pod drawerem (zamyka po kliknieciu) */
    .sidebar-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 105;
        opacity: 0; pointer-events: none;
        transition: opacity 0.25s;
    }
    .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

    /* Header na pelna szerokosc + hamburger, bez daty/nazwy/separatorow */
    .top-navbar { left: 0; width: 100%; padding: 0 14px; }
    .panel-burger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; flex-shrink: 0;
        background: rgba(15, 23, 42, 0.65); color: #fff; border: none;
        border-radius: 10px; font-size: 18px; cursor: pointer;
    }
    .top-navbar-date,
    .top-navbar .ui-hide-mobile,
    .top-navbar .ui-sep { display: none !important; }
    .top-navbar .user-info { gap: 10px; padding: 5px 12px; }

    /* Content na pelna szerokosc */
    .main-content { margin-left: 0; padding: 18px 14px; min-width: 0; }
    .header-title { font-size: 22px; }

    /* Lekko mniejsze elementy panelu na telefonie */
    .card { padding: 18px; }
    .stat-number { font-size: 28px; }
    .dashboard-grid { gap: 14px; margin-bottom: 26px; }

    /* Tabele panelu - mniejszy padding + poziomy scroll (nic sie nie tnie) */
    .panel-table th, .panel-table td { padding: 12px 12px !important; }

    /* Tabela z akcjami (domeny) -> karty na telefonie, zeby akcje byly widoczne */
    .cards-on-mobile thead { display: none; }
    .cards-on-mobile tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin: 12px;
        background: #fff;
    }
    .cards-on-mobile td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        text-align: right !important;
        padding: 10px 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .cards-on-mobile tr td:last-child { border-bottom: none !important; }
    .cards-on-mobile td::before {
        content: attr(data-label);
        font-weight: 700; font-size: 11px; color: #64748b;
        text-transform: uppercase; letter-spacing: 0.4px;
        text-align: left; flex-shrink: 0;
    }
    /* Komorka akcji na pelna szerokosc, przyciski z lewej (dropdown sie nie tnie) */
    .cards-on-mobile td.dm-actions { display: block; text-align: left !important; }
    .cards-on-mobile td.dm-actions::before { display: block; margin-bottom: 10px; }
    .cards-on-mobile td.dm-actions > div { justify-content: flex-start !important; flex-wrap: wrap; gap: 12px; }
    /* Dropdown 'Akcje' kotwiczony do lewej (trigger jest po lewej) - nie wystaje za ekran */
    .cards-on-mobile td.dm-actions .domain-dropdown-menu { left: 0; right: auto; }
    /* Stan pusty (colspan) — normalny, wysrodkowany */
    .cards-on-mobile td[colspan] { display: block; text-align: center !important; }
    .cards-on-mobile td:not([data-label])::before { content: none; }
}
