/**
 * SkyAdmin Frontend Styles - Modern Design
 * Responsive, clean design with improved UX
 */

/* Root variables for consistent theming */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   AI PROGRESS OVERLAY ANIMATIONS
   ============================================ */

/* Domain search progress overlay */
.domain-search-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: contentSlideIn 0.4s ease-out;
}

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

.progress-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4f8ff5, #00d4aa, #4f8ff5, #00d4aa);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-robot {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.robot-body {
    fill: #4f8ff5;
    animation: robotPulse 2s ease-in-out infinite;
}

.robot-head {
    fill: #357abd;
    animation: robotBob 1.5s ease-in-out infinite;
}

.robot-eye {
    fill: #00d4aa;
    animation: robotBlink 3s ease-in-out infinite;
}

.robot-screen {
    fill: #1a1a1a;
    animation: screenFlicker 1s ease-in-out infinite;
}

.robot-antenna {
    stroke: #00d4aa;
    stroke-width: 3;
    animation: antennaGlow 2s ease-in-out infinite;
}

.thinking-dots {
    fill: #4f8ff5;
    animation: thinkingDots 1.2s ease-in-out infinite;
}

.thinking-dots:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots:nth-child(3) { animation-delay: 0.4s; }

@keyframes robotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes robotBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes robotBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes antennaGlow {
    0%, 100% { filter: drop-shadow(0 0 5px #00d4aa); }
    50% { filter: drop-shadow(0 0 15px #00d4aa); }
}

@keyframes thinkingDots {
    0%, 20% { transform: translateY(0px); opacity: 0.3; }
    50% { transform: translateY(-10px); opacity: 1; }
    80%, 100% { transform: translateY(0px); opacity: 0.3; }
}

.progress-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: messageSlide 0.5s ease-out;
}

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

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f8ff5, #00d4aa);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .progress-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .ai-robot {
        width: 100px;
        height: 100px;
    }
    
    .progress-message {
        font-size: 16px;
        min-height: 40px;
    }
}

/* ============================================
   END AI PROGRESS OVERLAY
   ============================================ */

/* Base container styling */
.skyadmin-frontend-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
}

/* Section styling */
.skyadmin-section {
    margin-bottom: 48px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.skyadmin-section-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skyadmin-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.skyadmin-section-header h2,
.skyadmin-section-header h3 {
    margin: 0 0 16px 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.skyadmin-section-header p {
    margin: 0;
    opacity: 0.95;
    font-size: clamp(1rem, 2vw, 1.2rem);
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Domain search styling */
.skyadmin-domain-search {
    padding: 24px 20px;
}

.domain-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
    flex-wrap: wrap;
    background: white;
    padding: 16px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.domain-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

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

.tld-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    min-width: 100px;
    transition: all 0.2s ease;
}

.tld-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.domain-results {
    margin-top: 32px;
}

/* ============================================
   DOMENESHOP-STYLE DOMAIN RESULTS
   ============================================ */

/* Domain Results Table (one domain per row) */
.popular-tlds-section table.domain-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #b6d4f5;
}

.popular-tlds-section table.domain-table thead th {
    background: #d2e7fa;
    color: #134f8e;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #b6d4f5;
}

.popular-tlds-section table.domain-table tbody tr {
    background: #f2f7fc;
}

.popular-tlds-section table.domain-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.popular-tlds-section table.domain-table tbody tr:hover {
    background: #e6f2fd;
}

.popular-tlds-section table.domain-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #dbe8f5;
    vertical-align: middle;
}

.popular-tlds-section table.domain-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-domain .domain-name {
    color: #134f8e;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.cell-requirements {
    font-size: 12px;
    color: #1a1a1a;
}

.cell-requirements .registrar {
    color: #666;
    font-style: italic;
    font-size: 11px;
}

.available .cell-requirements { color: #0d5e31; }
.taken .cell-requirements { color: #b2201b; }

.cell-price {
    text-align: right;
    font-weight: 600;
    color: #134f8e;
    white-space: nowrap;
}

/* Actions column */
.cell-actions {
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
}

.cell-actions .add-to-cart-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cell-actions .add-to-cart-btn:hover { background:#1d4ed8; }

.cell-actions .action-link {
    color: #134f8e;
    text-decoration: none;
    font-size: 11px;
}

.cell-actions .action-link:hover { text-decoration: underline; }

/* Requirement indicator */
.req-indicator {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 11px;
    margin-right: 4px;
    cursor: help;
}

/* Category separator row */
tr.category-separator-row td {
    background: #134f8e;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

tr.category-separator-row td .category-count { font-weight: 400; opacity: 0.85; margin-left:4px; }

/* ============================================
     WHOIS / EIERINFO MODAL
     ============================================ */
.whois-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
        display: flex; align-items: center; justify-content: center; z-index: 10000;
        animation: overlayFadeIn .25s ease;
}
.whois-modal {
        background: #fff; width: min(600px,90%); border-radius: 10px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.3);
        display: flex; flex-direction: column; max-height: 80vh; overflow: hidden; animation: contentSlideIn .28s ease;
        font-size: 14px;
}
.whois-header { padding: 14px 18px; background: #134f8e; color: #fff; display:flex; align-items:center; justify-content: space-between; }
.whois-header h3 { margin:0; font-size:16px; }
.whois-close { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; }
.whois-body { padding: 18px 20px; overflow-y:auto; }
.whois-body ul { margin:6px 0 0; padding-left:18px; }
.whois-section { margin-bottom:10px; }
.whois-note { background:#fff7cc; border:1px solid #f2e39a; padding:8px 10px; border-radius:6px; font-size:13px; }
.whois-footer { padding:12px 18px; background:#f1f5f9; text-align:right; }
.whois-footer .whois-close-btn { background:#2563eb; color:#fff; border:none; padding:6px 14px; font-size:13px; border-radius:4px; cursor:pointer; }
.whois-footer .whois-close-btn:hover { background:#1d4ed8; }

@media (max-width:600px){
    .whois-modal { width:94%; }
    .whois-header h3 { font-size:14px; }
}

/* Flags */
.cell-domain .flag { margin-right: 4px; }

@media (max-width: 780px) {
    .popular-tlds-section table.domain-table thead { display: none; }
    .popular-tlds-section table.domain-table, 
    .popular-tlds-section table.domain-table tbody, 
    .popular-tlds-section table.domain-table tr, 
    .popular-tlds-section table.domain-table td { display: block; width: 100%; }
    .popular-tlds-section table.domain-table tr { margin-bottom: 8px; }
    .popular-tlds-section table.domain-table td { border-bottom: 1px solid #e2e8f0; }
    .popular-tlds-section table.domain-table td.cell-price { text-align: left; }
    .popular-tlds-section table.domain-table td.cell-actions { text-align: left; }
    tr.category-separator-row td { display:block; }
}

/* Domain name section */
.domain-info {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}

.domain-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    word-break: break-all;
}

.domain-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.domain-status.available {
    color: var(--success-color);
}

.domain-status.taken {
    color: var(--gray-500);
}

.domain-status.fallback {
    color: #f59e0b;
}

.domain-country {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.domain-registrar {
    font-size: 12px;
    color: var(--gray-500);
}

/* Price section */
.domain-price {
    padding: 16px 20px;
    text-align: right;
    min-width: 120px;
    border-left: 1px solid var(--gray-100);
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.price-period {
    font-size: 12px;
    color: var(--gray-500);
    margin: 2px 0 0 0;
}

.price-strike {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 8px;
}

/* Action section */
.domain-action {
    padding: 16px 20px;
    min-width: 140px;
}

.domain-action .skyadmin-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.transfer-btn {
    background: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: white !important;
}

.transfer-btn:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Special styling for unavailable domains */
.domain-result.taken .domain-info h4 {
    color: var(--gray-600);
}

.domain-result.taken .price-amount {
    color: var(--gray-500);
}

/* Popular domains grid layout */
.popular-domains-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

/* Category results styling */
.category-results-section .domain-result {
    margin-bottom: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .domain-result {
        flex-direction: column;
        align-items: stretch;
    }
    
    .domain-info {
        border-bottom: 1px solid var(--gray-100);
        padding: 16px;
    }
    
    .domain-price {
        border-left: none;
        border-top: 1px solid var(--gray-100);
        padding: 12px 16px;
        text-align: left;
        min-width: auto;
    }
    
    .domain-action {
        padding: 12px 16px 16px 16px;
        min-width: auto;
    }
    
    .domain-meta {
        flex-wrap: wrap;
    }
    
    .domain-info h4 {
        font-size: 15px;
    }
    
    .price-amount {
        font-size: 16px;
    }
}

.domain-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.domain-price .period {
    font-size: 0.95rem;
    color: var(--gray-500);
}

/* Hosting packages grid - MAIN REDESIGN */
.skyadmin-hosting-packages {
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.skyadmin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 40px;
    align-items: stretch;
}

.skyadmin-product-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out;
}

.skyadmin-product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.skyadmin-product-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fefbff 0%, var(--primary-light) 100%);
}

.skyadmin-product-card.featured::before {
    content: "🏆 Mest Populær";
    position: absolute;
    top: 24px;
    right: -35px;
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: white;
    padding: 8px 45px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.2);
}

.skyadmin-product-header {
    padding: 32px 28px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
}

.skyadmin-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.skyadmin-product-card.featured .skyadmin-product-name {
    color: var(--primary-color);
}

.skyadmin-product-pricing {
    margin-bottom: 16px;
}

.skyadmin-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.skyadmin-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.skyadmin-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-600);
}

.skyadmin-price .period {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

.vat-info {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.skyadmin-yearly-price {
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.skyadmin-yearly-price .savings {
    font-weight: 600;
}

.skyadmin-product-description {
    padding: 0 28px 20px;
    text-align: center;
}

.skyadmin-product-description p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.skyadmin-product-features {
    padding: 0 28px;
    flex: 1;
}

.skyadmin-product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.skyadmin-product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.skyadmin-product-features li:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.skyadmin-product-features .feature-icon {
    background: var(--success-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.skyadmin-product-features .feature-text {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.skyadmin-product-actions {
    padding: 28px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Button styling */
.skyadmin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.skyadmin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.skyadmin-btn:hover::before {
    left: 100%;
}

.skyadmin-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.skyadmin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
}

.skyadmin-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.skyadmin-btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

/* Addon services styling */
.skyadmin-addon-services {
    padding: 24px 20px;
    background: white;
}

.skyadmin-addons-list {
    margin-top: 20px;
}

.skyadmin-addon-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s ease;
}

.skyadmin-addon-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.addon-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
}

.addon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.addon-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.addon-price {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.addon-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.skyadmin-btn-expand {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.skyadmin-btn-expand:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.skyadmin-btn-expand.expanded {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.addon-details {
    border-top: 1px solid var(--gray-200);
    padding: 20px;
    background: var(--gray-50);
}

.addon-details .addon-description {
    margin-bottom: 16px;
}

.addon-details .addon-description p {
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

.addon-details .addon-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.addon-details .addon-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.addon-details .feature-icon {
    color: var(--success-color);
    font-weight: bold;
    flex-shrink: 0;
}

.addon-details .feature-text {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Disabled state styling */
.skyadmin-disabled-message {
    padding: 48px 32px;
    text-align: center;
}

.skyadmin-notice {
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border: 1px solid;
}

.skyadmin-notice-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.skyadmin-notice h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Loading and message styles */
.skyadmin-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gentle fade-in animation for product cards */

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

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

/* Improved button press effect */
.skyadmin-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* Success indicator for add to cart */
.skyadmin-btn.success {
    background: var(--success-color) !important;
}

.skyadmin-btn.success::after {
    content: " ✓";
    opacity: 0;
    animation: checkmark 2s ease;
}

@keyframes checkmark {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}

.skyadmin-message {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.skyadmin-message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.skyadmin-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.skyadmin-message-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* Responsive design */
@media (max-width: 768px) {
    .skyadmin-frontend-container {
        padding: 16px;
    }
    
    .skyadmin-section-header {
        padding: 20px 16px;
    }
    
    .skyadmin-hosting-packages,
    .skyadmin-addon-services,
    .skyadmin-domain-search {
        padding: 20px 16px;
    }
    
    .skyadmin-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .domain-search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .domain-input,
    .tld-select {
        min-width: auto;
        width: 100%;
    }
    
    .domain-result {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .skyadmin-product-card.featured::before {
        font-size: 0.75rem;
        padding: 6px 35px;
    }

    /* Mobile responsive for addon items */
    .addon-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .addon-info {
        text-align: center;
        gap: 8px;
    }

    .addon-actions {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .skyadmin-btn-expand,
    .add-to-cart-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .addon-details .addon-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skyadmin-products-grid {
        grid-template-columns: 1fr;
    }
    
    .skyadmin-product-card.featured::before {
        display: none;
    }
    
    .skyadmin-price .amount {
        font-size: 2rem;
    }
}

/* Open Domain Search Results */
.open-search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popular-tlds-section,
.categories-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.popular-tlds-section h3,
.categories-section h3 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.popular-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.expand-search-btn {
    margin: 1rem 0 0 0;
    width: 100%;
    justify-self: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-option {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.category-option:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-option h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
}

.category-option p {
    margin: 0 0 1rem 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.category-search-btn {
    width: 100%;
}

/* Category Results Modal */
.category-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--gray-800);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.category-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Domain result styling improvements for open search */
.open-search-results .domain-result {
    border: 1px solid var(--gray-200);
    background: white;
}

.open-search-results .domain-result:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.domain-result .country {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Responsive adjustments for open search */
@media (max-width: 768px) {
    .popular-domains-grid,
    .category-domains-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Category Results Section */
.category-results-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.category-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.category-header p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-600);
}

/* Domain Suggestions Section */
.suggestions-section {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.suggestions-section h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.suggestions-section p {
    margin: 0 0 1rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.suggestion-option {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.suggestion-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.suggestion-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.suggestion-search-btn {
    width: 100%;
}

/* ============================================
   PRODUCT NAVIGATION MENU
   ============================================ */

.skyadmin-product-navigation {
    margin: 2rem 0 1rem 0;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.skyadmin-product-menu {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skyadmin-nav-btn {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.skyadmin-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skyadmin-nav-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .skyadmin-nav-btn {
        min-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   PACKAGE SOLUTIONS GRID
   ============================================ */

.skyadmin-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skyadmin-package-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skyadmin-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.skyadmin-package-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.skyadmin-package-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.skyadmin-package-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skyadmin-package-badge.developer {
    background: rgba(102, 126, 234, 0.9);
}

.skyadmin-package-badge.business {
    background: rgba(34, 139, 34, 0.9);
}

.skyadmin-package-badge.ecommerce {
    background: rgba(255, 140, 0, 0.9);
}

.skyadmin-package-badge.management {
    background: rgba(138, 43, 226, 0.9);
}

.skyadmin-package-badge.premium {
    background: rgba(220, 20, 60, 0.9);
}

.skyadmin-package-badge.ai {
    background: rgba(0, 191, 255, 0.9);
}

.skyadmin-package-description {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.skyadmin-package-description p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: var(--gray-600);
}

.skyadmin-package-pricing {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.skyadmin-price-tier {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skyadmin-price-tier.recommended {
    background: #e8f5e8;
    border-color: var(--success-color);
    position: relative;
}

.skyadmin-price-tier.recommended::after {
    content: "ANBEFALT";
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
}

.skyadmin-price-tier .amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.skyadmin-price-tier .currency {
    font-weight: 600;
    color: var(--gray-600);
}

.skyadmin-price-tier .tier-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-left: auto;
}

.skyadmin-package-features {
    padding: 1.5rem;
    flex-grow: 1;
}

.skyadmin-package-features h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.skyadmin-package-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skyadmin-package-features li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: var(--gray-600);
}

.skyadmin-package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
}

.skyadmin-package-actions {
    padding: 1.5rem;
    text-align: center;
    background: var(--gray-50);
    margin-top: auto;
}

.skyadmin-package-actions .skyadmin-btn {
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

@media (max-width: 768px) {
    .skyadmin-packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skyadmin-package-card {
        margin: 0 1rem;
    }
    
    .skyadmin-package-header,
    .skyadmin-package-description,
    .skyadmin-package-features,
    .skyadmin-package-actions {
        padding: 1rem;
    }
    
    .skyadmin-package-pricing {
        padding: 0.75rem 1rem;
    }
}
