@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

 :root {
            --primary-color: #1323D4;
            --primary-dark: #4f46e5;
            --primary-light: #818cf8;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --info-color: #3b82f6;
            --dark-color: #1f2937;
            --light-color: #f9fafb;
            --border-color: #e5e7eb;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
            color: var(--dark-color);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            /* padding: 2rem 1rem; */
        }

.download-btn {
            background: #16a34a;
            color: white;
            padding: 16px 32px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s;
            white-space: nowrap;
        }
        
        .download-btn:hover {
            background: #15803d;
            color: white;
        }

        .download-btn2 {
            background: #16a34a;
            color: white;
            padding: 16px 32px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s;
            white-space: nowrap;
        }
        
        .download-btn2:hover {
            background: #15803d;
            color: white;
        }


        /* Header migliorato */
        .page-header {
            margin-bottom: 3rem;
            animation: fadeInDown 0.5s ease-out;
        }

        .page-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--dark-color);
            margin-bottom: 0.5rem;
            letter-spacing: -0.02em;
        }

        .page-subtitle {
            font-size: 1.125rem;
            color: #6b7280;
            font-weight: 400;
        }


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

        /* .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, 0.05) 50%);
            transition: transform 0.3s ease;
        }

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

        .stat-card:hover::before {
            transform: scale(2);
        } */

        .badge-lifetime {
            background: linear-gradient(135deg, #8b5cf6, #a78bfa);
            color: white;
            box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
        }

        .badge-trial {
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            color: white;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }

        .badge-monthly {
            background: linear-gradient(135deg, #10b981, #34d399);
            color: white;
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
        }

        .badge-yearly {
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            color: white;
            box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
        }

        /* Status badges */
        .status-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
        }

        .status-badge::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s infinite;
        }

        .status-active {
            background: #d1fae5;
            color: #065f46;
        }

        .status-expired {
            background: #fee2e2;
            color: #991b1b;
        }
        .stat-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        
            font-size: 1.5rem;
            color: white;
        }

        .stat-card:nth-child(2) .stat-icon {
            background: linear-gradient(135deg, var(--success-color), #34d399);
        }

        .stat-card:nth-child(3) .stat-icon {
            background: linear-gradient(135deg, var(--warning-color), #fbbf24);
        }

        .stat-card:nth-child(4) .stat-icon {
            background: linear-gradient(135deg, var(--info-color), #60a5fa);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0.5rem 0;
            color: var(--dark-color);
            line-height: 1;
        }

        .stat-label {
            font-size: 0.875rem;
            color: #6b7280;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }


        /* Statistiche migliorate */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.stat-icon {
    font-size: 2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
    line-height: 1;
    flex-shrink: 0;
}


/* Effetto hover opzionale */
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Per schermi piccoli, se vuoi che si impilino verticalmente */
@media (max-width: 768px) {
    .stat-content {
        flex-wrap: wrap;
    }
    
    .stat-label {
        font-size: 12px;
        width: 100%;
        margin-top: 0.5rem;
    }
}

        /* Messaggio di benvenuto migliorato */
        .welcome-trial {
            background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
            padding: 2.5rem;
            border-radius: 1.5rem;
            margin-bottom: 2rem;
            border: 2px solid #a5b4fc;
            position: relative;
            overflow: hidden;
            animation: slideInLeft 0.6s ease-out;
        }

        .welcome-trial::before {
            content: '🎉';
            position: absolute;
            font-size: 6rem;
            opacity: 0.1;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%) rotate(-15deg);
        }

        .welcome-trial h2 {
            color: var(--primary-dark);
            margin-bottom: 1rem;
            font-size: 1.875rem;
            font-weight: 700;
        }

        .welcome-trial ul {
            margin: 1.5rem 0;
            padding-left: 0;
            list-style: none;
        }

        .welcome-trial li {
            padding: 0.5rem 0;
            padding-left: 2rem;
            position: relative;
        }

        .welcome-trial li::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0.5rem;
            width: 1.5rem;
            height: 1.5rem;
            background: var(--success-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            font-weight: bold;
        }

        .welcome-trial .btn-guide {
            background: var(--primary-color);
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 0.75rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }

        .welcome-trial .btn-guide:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }



        /* Tabella migliorata */
        .table-container {
            background: white;
            border-radius: 1rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out;
        }

        .modern-table {
            width: 100%;
            border-collapse: collapse;
        }

        .modern-table thead {
            background: #f8fafc;
            border-bottom: 2px solid var(--border-color);
        }

        .modern-table th {
            padding: 1rem 1.5rem;
            text-align: left;
            font-weight: 600;
            color: #4b5563;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .modern-table td {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid #f3f4f6;
        }

        .modern-table tbody tr {
            transition: all 0.2s ease;
        }

        .modern-table tbody tr:hover {
            background: #f9fafb;
        }

        .modern-table tbody tr:last-child td {
            border-bottom: none;
        }

        /* License key styling */
        .license-key-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .license-key {
            background: #f3f4f6;
            padding: 0.375rem 0.75rem;
            border-radius: 0.5rem;
            font-family: 'Fira Code', monospace;
            font-size: 0.875rem;
            color: var(--dark-color);
            border: 1px solid var(--border-color);
        }

        .copy-btn {
            background: transparent;
            border: none;
            color: #6b7280;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 0.375rem;
            transition: all 0.2s ease;
        }

        .copy-btn:hover {
            color: var(--primary-color);
            background: #f3f4f6;
        }

        .copy-btn.copied {
            color: var(--success-color);
        }

        /* Badge migliorati */
        .badge {
            padding: 0.375rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: inline-block;
        }


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

body {
   font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
    background: #f5f7fa;
    line-height: 1.6;
}
p,input,ul,li,label,table,tr,td,button,a{   font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;}
  p{margin-bottom: 0;}
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}
a:hover {
    color: #000000;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);

}
  .breadcrumb {
            color: #718096;
            font-size: 14px;
            margin-bottom: 0;
        }

        .breadcrumb a {
            color: #0077B6;
            text-decoration: none;
        }
.navbar-toggler{background:#ffffff!important; width: 45px;height: 45px;border-radius: 60px;text-align: center;padding: 0}
.navbar-toggler-linea{transition: all 0.3s ease;border-radius:15px;background:#000000!important;height: 2px;width: 35px;margin-bottom: 5px;display:block;margin:0px auto 5px;position:relative;top:0;}
.navbar-toggler-linea:nth-child(3){margin-bottom: 0px; }
.menu-toggle-open .navbar-toggler-linea:nth-child(1){transform: rotate(45deg) translate(6px,6px);}
.menu-toggle-open .navbar-toggler-linea:nth-child(2){transform: translate(40px);opacity: 0;}
.menu-toggle-open .navbar-toggler-linea:nth-child(3){transform: rotate(-45deg) translate(4px,-4px);}


 .logo {
            font-size: 24px;
            font-weight: 300;
            color: #1323D4;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            width: 32px;
            height: 32px;
        }
@media (max-width: 768px) {
  .logo{
               font-size: 18px;
 
  }
}

.navbar-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #0077B6;
}


.welcome-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-section h1 {
    color: #2d3748;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #718096;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

/* .stat-card:hover {
    transform: translateY(-2px);
} */

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: #e6f4ff; color: #0077B6; }
.stat-icon.green { background: #e6ffed; color: #10b981; }
.stat-icon.orange { background: #fff7ed; color: #f59e0b; }
.stat-icon.purple { background: #f3e8ff; color: #8b5cf6; }

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #4a5568;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #0077B6;
        }



 .section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 30px;
            overflow: hidden;
        }


.section-content {
            padding: 25px;
        }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
    color: #2d3748;
}


.licenses-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.licenses-table table {
    width: 100%;
    border-collapse: collapse;
}

.licenses-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.licenses-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.licenses-table tr:last-child td {
    border-bottom: none;
}

.licenses-table tr:hover {
    background: #f9fafb;
}

.license-key {
    font-family: monospace;
    font-size: 13px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Stili per license-details.php */

/* Status badge per rinnovo automatico */
.license-status.auto-renewing {
    background-color: #0ea5e9;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Box informativo per rinnovo automatico */
.auto-renewal-info-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.auto-renewal-info-box h3 {
    color: #0ea5e9;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.auto-renewal-info-box ul.auto-renewal-benefits {
    margin: 10px 0;
    padding-left: 20px;
}

.auto-renewal-info-box ul.auto-renewal-benefits li {
    margin-bottom: 5px;
    color: #374151;
}

/* Stili per il valore della scadenza con rinnovo automatico */
.detail-value small {
    font-weight: normal;
}

/* Versione lifetime esistente (per coerenza) */
.lifetime-info-box {
    background: #fee;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.lifetime-info-box h3 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.lifetime-info-box ul.lifetime-benefits {
    margin: 10px 0;
    padding-left: 20px;
}

.lifetime-info-box ul.lifetime-benefits li {
    margin-bottom: 5px;
    color: #374151;
}

/* Responsiveness per mobile */
@media (max-width: 768px) {
    .auto-renewal-info-box,
    .lifetime-info-box {
        padding: 15px;
        margin-top: 15px;
    }

    .auto-renewal-info-box h3,
    .lifetime-info-box h3 {
        font-size: 16px;
    }
}

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

.badge-active { background: #e6ffed; color: #10b981; }
.badge-expired { background: #fee; color: #dc2626; }
.badge-expiring { background: #fff7ed; color: #f59e0b; }

.status-badge.status-lifetime {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

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

.lifetime-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state img {
    width: 200px;
    opacity: 0.5;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}



.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1a202c;
    font-weight: 700;
}

.licenses-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.license-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}



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

.license-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* .license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
} */

.license-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.license-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.license-type {
    font-size: 24px;
    font-weight: bold;
    color: #1a202c;
}

.license-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.license-status.active {
    background: #d4f4dd;
    color: #22543d;
}

.license-status.expiring {
    background: #fef3c7;
    color: #92400e;
}

.license-status.expired {
    background: #fee;
    color: #c53030;
}

.license-status.suspended {
    background: #e2e8f0;
    color: #4a5568;
}

/* Stili per lo stato di rinnovo automatico */
.license-status.auto-renewing {
    background-color: #0ea5e9;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Alternativa con colori più soft se preferisci */
.license-status.auto-renewing-soft {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #0ea5e9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Stili per il messaggio informativo */
.auto-renewal-info {
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    border-radius: 3px;
    padding: 10px;
    margin-top: 15px;
}

.auto-renewal-info small {
    color: #0369a1;
    font-size: 13px;
}

.license-key-box {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: #0077B6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}


.copy-btn.copied {
    background: #48bb78;
}

.license-details {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 14px;
    color: #718096;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.license-actions {
    padding: 20px 25px;
    background: #f7fafc;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.active-sites {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.active-sites-title {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-tag {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.empty-state {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d3748;
}

.empty-text {
    color: #718096;
    margin-bottom: 30px;
}

.new-license-section {
    background: linear-gradient(135deg, #0077B6 0%, #2196F3 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.new-license-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.new-license-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}


@media (max-width: 768px) {


    .license-details {
        grid-template-columns: 1fr;
    }

    .license-header-top {
        flex-direction: column;
        gap: 10px;
    }

    .license-key-box {
        font-size: 14px;
    }
}


        .help-text {
            font-size: 12px;
            color: #718096;
            margin-top: 4px;
        }


        .sessions-table {
            width: 100%;
            margin-top: 15px;
        }

        .sessions-table th {
            background: #f7fafc;
            padding: 12px;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            border-bottom: 1px solid #e2e8f0;
        }

        .sessions-table td {
            padding: 12px;
            border-bottom: 1px solid #f7fafc;
            font-size: 14px;
        }

        .current-session {
            background: #e6f7ff;
        }

        .danger-zone {
            background: #fff5f5;
            border: 2px solid #feb2b2;
        }

        .danger-zone .section-header {
            background: #fee;
            border-bottom-color: #feb2b2;
        }
        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #1a202c;
            margin-bottom: 0;
        }
        .danger-zone .section-title {
            color: #c53030;
        }




         .billing-form {
            padding: 25px;
        }

        .billing-form:hover {
            background: #fafbfc;
        }

        .license-info {
            background: #f7fafc;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #e2e8f0;
        }

        .license-key {
            font-family: monospace;
            color: #0077B6;
            font-size: 14px;
        }

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

        .form-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
        }



        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #0077B6;
        }

        .required::after {
            content: ' *';
            color: #e53e3e;
        }

        .radio-group {
            display: flex;
            gap: 20px;
            margin-top: 8px;
            margin-bottom:30px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
        }

        .radio-option:hover {
            border-color: #cbd5e0;
            background: #edf2f7;
        }

        .radio-option input[type="radio"] {
            display: none;
        }

        .radio-option input[type="radio"]:checked + label {
            color: #2d3748;
            font-weight: 600;
        }

        .radio-option input[type="radio"]:checked ~ .radio-icon {
            background: #0077B6;
            border-color: #0077B6;
        }

        .radio-option input[type="radio"]:checked ~ .radio-icon::after {
            transform: scale(1);
        }

        .radio-option label {
            cursor: pointer;
            margin: 0;
            color: #4a5568;
            transition: color 0.2s;
        }

        .radio-icon {
            width: 20px;
            height: 20px;
            border: 2px solid #cbd5e0;
            border-radius: 50%;
            margin-right: 10px;
            position: relative;
            transition: all 0.2s;
        }

        .radio-icon::after {
content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
        }

        .radio-option.selected {
            background: #e6f7ff;
            border-color: #0077B6;
        }

        .conditional-fields {
            display: none;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .help-text {
            font-size: 12px;
            color: #718096;
            margin-top: 4px;
        }


        .invoices-table {
            width: 100%;
        }

        .invoices-table th {
            background: #f7fafc;
            padding: 12px 20px;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            border-bottom: 1px solid #e2e8f0;
        }

        .invoices-table td {
            padding: 15px 20px;
            border-bottom: 1px solid #f7fafc;
            font-size: 14px;
        }

        .invoices-table tr:last-child td {
            border-bottom: none;
        }

        .empty-state {
            padding: 60px 20px;
            text-align: center;
            color: #718096;
        }

        .empty-icon {
            font-size: 48px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .collapsible {
            cursor: pointer;
            user-select: none;
        }

        .collapsible:hover {
            background: #f7fafc;
        }

        .collapse-icon {
            float: right;
            transition: transform 0.3s;
        }

        .collapsed .collapse-icon {
            transform: rotate(180deg);
        }

        @media (max-width: 768px) {

            .form-grid {
                grid-template-columns: 1fr;
            }

            .radio-group {
                flex-direction: column;
            }
        }

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


         .links {
            text-align: center;
            margin-top: 20px;
        }

        .links a {
            color: #0077B6;
            text-decoration: none;
            font-size: 14px;
        }

        .links a:hover {
            text-decoration: underline;
        }

        .divider {
            text-align: center;
            margin: 20px 0;
            color: #718096;
            font-size: 14px;
        }

.header{
        border-radius: 20px 20px 0 0;

}
.header-blue {
    background: linear-gradient(135deg, #0077B6 0%, #2196F3 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
            border-radius: 20px 20px 0 0;

}
.header-orange {
    background: linear-gradient(135deg, #FFA500 0%, #FFA500 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
            border-radius: 20px 20px 0 0;

}

.contenitore_form{
    margin-top: 100px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 20px;

}


        .message {
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .empty-message {
            padding: 40px;
            text-align: center;
            color: #718096;
        }



        .info-box {
            background: #f0f9ff;
            border: 1px solid #bee3f8;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            line-height: 1.6;
        }

        .success-container {
            text-align: center;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: #d4edda;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 40px;
            color: #155724;
        }


        .form-container {
            background-color: #ffffff;
            padding: 40px 30px;
    border-radius: 0 0 20px 20px;
        }

        .tabs {
            display: flex;
            margin-bottom: 30px;
            border-bottom: 2px solid #e2e8f0;
        }

        .tab {
            flex: 1;
            padding: 15px;
            text-align: center;
            color: #718096;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            position: relative;
        }

        .tab.active {
            color: #0077B6;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: #0077B6;
        }


        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .checkbox-group input[type="checkbox"] {
            width: auto;
            margin-right: 8px;
        }

        .checkbox-group label {
            margin: 0;
            font-weight: normal;
            color: #4a5568;
        }



        .sites-list {
            padding: 0;
        }

        .site-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid #f7fafc;
            transition: background 0.2s;
        }

        .site-item:hover {
            background: #f7fafc;
        }

        .site-item:last-child {
            border-bottom: none;
        }

        .license-info {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
            justify-content: space-between !important;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .info-label {
            font-size: 14px;
            color: #718096;
        }

        .info-value {
            font-size: 18px;
            font-weight: 600;
            color: #2d3748;
        }

        .info-value.license-key {
            font-family: monospace;
            color: #0077B6;
        }

        .usage-bar {
            background: #e2e8f0;
            height: 12px;
            border-radius: 6px;
            overflow: hidden;
            margin-top: 5px;
            width: 200px;
        }

        .usage-fill {
            background: #0077B6;
            height: 100%;
            transition: width 0.3s;
        }

        .usage-fill.warning {
            background: #f59e0b;
        }

        .usage-fill.full {
            background: #ef4444;
        }

        .sites-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .site-info {
            flex: 1;
        }

        .site-domain {
            font-size: 18px;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 5px;
        }

        .site-details {
            font-size: 14px;
            color: #718096;
        }

        .site-id {
            font-family: monospace;
            font-size: 12px;
            color: #a0aec0;
            margin-top: 5px;
        }
        .activity-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .activity-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 25px;
            border-bottom: 1px solid #f7fafc;
            font-size: 14px;
        }

        .activity-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .activity-icon.activate {
            background: #d4f4dd;
            color: #22543d;
        }

        .activity-icon.deactivate {
            background: #fee;
            color: #c53030;
        }

        .activity-content {
            flex: 1;
        }

        .activity-action {
            font-weight: 600;
            color: #2d3748;
        }

        .activity-domain {
            color: #0077B6;
        }

        .activity-time {
            color: #a0aec0;
            font-size: 12px;
        }

        @media (max-width: 768px) {
            .license-info {
                flex-direction: column;
                gap: 20px;
            }

            .site-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .usage-bar {
                width: 100%;
            }
        }


        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #0077B6;
            text-decoration: none;
            margin-bottom: 20px;
            font-weight: 500;
        }

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


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


        .license-status {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
        }

        .license-status.active {
            background: #d4f4dd;
            color: #22543d;
        }

        .license-status.expiring {
            background: #fef3c7;
            color: #92400e;
        }

        .license-status.expired {
            background: #fee;
            color: #c53030;
        }

        .license-status.suspended {
            background: #e2e8f0;
            color: #4a5568;
        }

        .license-key-display {
            background: #ffffff;
            padding: 15px 20px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .copy-btn {
            background: #0077B6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }



        .copy-btn.copied {
            background: #48bb78;
            color: #ffffff;
        }

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

        .detail-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 30px;
        }


        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #f7fafc;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            font-size: 14px;
            color: #718096;
        }


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

        .stat-box {
            background: #f7fafc;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 28px;
            font-weight: bold;
            color: #0077B6;
            margin-bottom: 5px;
        }

        .table-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .table-header {
            padding: 25px;
            border-bottom: 1px solid #e2e8f0;
        }



        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            /* margin-top: 25px;
            padding-top: 25px;
            margin-bottom: 30px;
            border-top: 1px solid #e2e8f0; */
        }


        .technical-info {
            background: #f7fafc;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
            font-family: monospace;
            font-size: 13px;
            color: #4a5568;
            line-height: 1.6;
        }

        @media (max-width: 768px) {

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

            .header-top {
                flex-direction: column;
                gap: 15px;
            }

            .license-key-display {
                flex-direction: column;
                gap: 10px;
            }

            .copy-btn {
                width: 100%;
            }


        }




        .subscription-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 30px;
            margin-bottom: 20px;
        }

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

        .subscription-title {
            font-size: 24px;
            font-weight: 600;
            color: #1a202c;
        }

        .subscription-status {
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }







        .status-active {
            background: #d4edda;
            color: #155724;
        }

        .status-cancelling {
            background: #fff3cd;
            color: #856404;
        }

        .status-past-due {
            background: #f8d7da;
            color: #721c24;
        }

        .subscription-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }



        .cancel-notice {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .cancel-notice h3 {
            color: #856404;
            margin-bottom: 10px;
        }

.upgrade-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    position: relative;
}




.lifetime-info-box {
    background: linear-gradient(to right, #fff9f9, #fff);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.lifetime-benefits {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.lifetime-benefits li {
    padding: 5px 0;
    color: #e74c3c;
    font-weight: 500;
}

.lifetime-benefits li::before {
    content: '- ';
    margin-right: 5px;
}

.detail-value.lifetime {
    color: #e74c3c;
    font-weight: bold;
}



/* Aggiungi questo CSS nella sezione <style> del file */

.btn-success-outline {
    color: #10b981;
    border-color: #10b981;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-success-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.5s;
}

.btn-success-outline:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

/* Icona animata */
.btn-success-outline i {
    transition: transform 0.3s ease;
}

.btn-success-outline:hover i {
    transform: translateY(-2px);
    animation: bounce 0.5s ease-in-out;
}

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




/* Stili per language selector */
        .language-selector {
            position: relative;
            display: inline-block;
        }

        .language-current {
            background: transparent;
            border: 1px solid #e5e7eb;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .language-current:hover {
            border-color: var(--primary-color);
            background: #f9fafb;
        }

        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 0.5rem;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            display: none;
            min-width: 150px;
            z-index: 1000;
        }

        .language-dropdown.show {
            display: block;
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            text-decoration: none;
            color: #374151;
            transition: all 0.2s;
        }

        .language-option:hover {
            background: #f3f4f6;
            color: var(--primary-color);
        }

        .language-option:first-child {
            border-radius: 0.5rem 0.5rem 0 0;
        }

        .language-option:last-child {
            border-radius: 0 0 0.5rem 0.5rem;
        }

        /* Aggiungi language selector al nav */
        .navbar .language-selector {
            margin-left: 1rem;
        }


         .filter-section {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 4px rgba(0,0,0,.05);
        }
        .stats-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,.05);
            margin-bottom: 1.5rem;
            transition: transform 0.2s;
            text-align: center;
        }
        .stats-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,.1);
        }
        .stats-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: #667eea;
        }
        .stats-label {
            color: #6c757d;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .chart-container {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,.05);
            margin-bottom: 1.5rem;
        }
        .empty-state {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }
        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            display: block;
        }
        .feature-badge {
            background: #e3f2fd;
            color: #1976d2;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            display: inline-block;
            margin: 0.25rem;
        }
        .site-info-box {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }


.chart-container {
    margin-bottom: 2rem;
}

.chart-canvas-wrapper {
    position: relative;
    height: 300px; /* Altezza fissa per il grafico principale */
}

.chart-canvas-wrapper-small {
    position: relative;
    height: 250px; /* Altezza fissa per grafici più piccoli */
}


.chart-wrapper-fixed {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-wrapper-fixed canvas {
    position: absolute !important;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}