/* SHIELD Components - Shared Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #7DD3E8;
    --secondary-cyan: #5BC9DE;
    --dark-bg: #141414;
    --glass-bg: rgba(125, 211, 232, 0.1);
    --glass-border: rgba(125, 211, 232, 0.3);
    --text-primary: #f9f9f9;
    --text-secondary: #b0b0b0;
    --success: #00ff88;
    --error: #ff4444;
    --warning: #ffaa00;
    --sidebar-bg: rgba(10, 10, 10, 0.95);
    --sentinel-color: #B8E6FF;
    --knight-color: #FF8C42;
    --eternal-color: #52d4a0;
    --xdripian-blue: #0271FC;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 3px;
}

.sidebar-header {
    padding: 0 25px 30px 25px;
    border-bottom: 1px solid rgba(125, 211, 232, 0.2);
    text-align: center;
}

.sidebar-header img {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(125, 211, 232, 0.5));
}

.sidebar-header h2 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 32px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.tier-badge.sentinel {
    background: linear-gradient(135deg, rgba(184, 230, 255, 0.2), rgba(184, 230, 255, 0.1));
    border: 1px solid var(--sentinel-color);
    color: var(--sentinel-color);
}

.tier-badge.knight {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2), rgba(255, 140, 66, 0.1));
    border: 1px solid var(--knight-color);
    color: var(--knight-color);
}

.tier-badge.eternal {
    background: linear-gradient(135deg, rgba(82, 212, 160, 0.2), rgba(82, 212, 160, 0.1));
    border: 1px solid var(--eternal-color);
    color: var(--eternal-color);
}

.main-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
    padding: 0 25px;
}

.nav-section h4 {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-section a {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.nav-section a:hover {
    background: var(--glass-bg);
    color: var(--primary-cyan);
}

.nav-section a.active {
    background: var(--glass-bg);
    color: var(--primary-cyan);
    border-left: 3px solid var(--primary-cyan);
}

.nav-section a[data-locked="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-section a[data-locked="true"]::after {
    content: "🔒";
    position: absolute;
    right: 15px;
    font-size: 12px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(125, 211, 232, 0.2);
}

.btn-logout {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-logout:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
}
/* ============================================ */
/* SUBSCRIPTION PAGE STYLES */
/* ============================================ */

.subscription-tier-card {
    background: linear-gradient(145deg, rgba(125, 211, 232, 0.15), rgba(125, 211, 232, 0.05));
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 50px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.tier-badge-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tier-badge-large.knight {
    background: linear-gradient(135deg, var(--knight-color), #ff6b2b);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.tier-badge-large.sentinel {
    background: linear-gradient(135deg, var(--sentinel-color), #89d4f0);
    color: #000;
}

.tier-badge-large.eternal {
    background: linear-gradient(135deg, var(--eternal-color), #3ab88a);
    color: #000;
}

.subscription-tier-card h2 {
    font-size: 42px;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.tier-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.subscription-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(125, 211, 232, 0.2);
}

.sub-stat {
    text-align: center;
}

.sub-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.sub-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-stat-value.active {
    color: var(--success);
}

/* Features list for subscription page */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.feature-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(125, 211, 232, 0.2);
}

.feature-item .icon {
    font-size: 36px;
    flex-shrink: 0;
}

.feature-item .content h4 {
    color: var(--primary-cyan);
    margin-bottom: 8px;
    font-size: 18px;
}

.feature-item .content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Comparison table */
.comparison-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    overflow-x: auto;
    margin-bottom: 60px;
}

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

.comparison-table th {
    background: rgba(0, 0, 0, 0.5);
    padding: 18px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.comparison-table th.sentinel-col { color: var(--sentinel-color); }
.comparison-table th.knight-col { color: var(--knight-color); }
.comparison-table th.eternal-col { color: var(--eternal-color); }

.comparison-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(125, 211, 232, 0.1);
    font-size: 15px;
}

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

.comparison-table .price-row {
    background: rgba(125, 211, 232, 0.05);
}

.comparison-table .price-row td {
    font-size: 20px;
    font-weight: 700;
}

/* Subscription actions */
.subscription-actions {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.subscription-actions h3 {
    color: var(--primary-cyan);
    margin-bottom: 25px;
    font-size: 26px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-action.primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-cyan));
    color: #000;
}

.btn-action.secondary {
    background: rgba(125, 211, 232, 0.1);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-action.danger {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--error);
    color: var(--error);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* UPGRADE PAGE STYLES */
/* ============================================ */

.current-tier-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.2), rgba(125, 211, 232, 0.1));
    border: 2px solid var(--primary-cyan);
    border-radius: 25px;
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Tier Cards Display */
.shield-tiers-display {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.tiers-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tiers-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #A8E6F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
}

.tiers-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.tier-card-display {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 25, 35, 0.95), rgba(10, 20, 30, 0.9));
    border: 2px solid var(--tier-border);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.tier-card-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--tier-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tier-card-display:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--tier-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 60px var(--glow-shadow);
}

.tier-card-display:hover::before {
    opacity: 1;
}

.tier-card-display.sentinel {
    --tier-border: rgba(184, 230, 255, 0.2);
    --tier-glow: #B8E6FF;
    --glow-shadow: rgba(184, 230, 255, 0.4);
}

.tier-card-display.knight {
    --tier-border: rgba(255, 140, 66, 0.2);
    --tier-glow: #FF8C42;
    --glow-shadow: rgba(255, 140, 66, 0.4);
}

.tier-card-display.eternal {
    --tier-border: rgba(82, 212, 160, 0.2);
    --tier-glow: #52d4a0;
    --glow-shadow: rgba(82, 212, 160, 0.4);
}

.tier-card-display.current-tier::after {
    content: "✓ CURRENT PLAN";
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success), #00dd77);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
    z-index: 10;
}

.tier-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 22px 22px 0 0;
    transition: transform 0.4s ease;
}

.tier-card-display:hover .tier-image {
    transform: scale(1.05);
}

.tier-content {
    padding: 2.5rem;
}

.tier-badge-display {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--tier-glow);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px var(--glow-shadow);
}

.tier-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tier-glow);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 20px var(--glow-shadow);
}

.tier-pricing {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(125, 211, 232, 0.15);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-label {
    font-size: 0.9rem;
    color: #808080;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-value .currency {
    font-size: 1.2rem;
}

.price-value .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.tier-features {
    margin-bottom: 2rem;
}

.tier-features h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

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

.tier-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.5;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tier-glow);
    font-weight: 700;
    font-size: 1.2rem;
}

.tier-cta {
    display: block;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, rgba(20, 30, 40, 0.95), rgba(15, 25, 35, 0.9));
    color: var(--primary-cyan);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: 2px solid rgba(125, 211, 232, 0.5);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 25px rgba(125, 211, 232, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(125, 211, 232, 0.5);
}

.tier-cta:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--tier-glow);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 45px var(--glow-shadow);
    color: var(--tier-glow);
}

.tier-cta.current-tier-btn {
    background: linear-gradient(145deg, rgba(100, 100, 110, 0.8), rgba(80, 80, 90, 0.7));
    color: #888;
    border-color: rgba(136, 136, 136, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.tier-cta.current-tier-btn:hover {
    transform: none;
    border-color: rgba(136, 136, 136, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #888;
}

.tiers-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(125, 211, 232, 0.1), rgba(125, 211, 232, 0.05));
    border: 1px solid rgba(125, 211, 232, 0.2);
    border-radius: 16px;
}

.tiers-note p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.tiers-note a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

.tiers-note a:hover {
    color: #A8E6F5;
    text-decoration: underline;
}

.shop-cta {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.15), rgba(125, 211, 232, 0.05));
    border: 2px solid var(--glass-border);
    border-radius: 20px;
}

.shop-cta h3 {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.shop-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-shop {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-cyan));
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(125, 211, 232, 0.3);
}

.btn-shop:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(125, 211, 232, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
}

@media (max-width: 768px) {
    .subscription-stats-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-action {
        width: 100%;
        text-align: center;
    }
    .tier-image {
        height: 250px;
    }
    .tier-content {
        padding: 2rem;
    }
    .tier-title {
        font-size: 1.8rem;
    }
    .tier-cta {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================ */
/* SUPPORT TICKETS PAGE */
/* ============================================ */

.page-section {
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
}

.info-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-cyan);
    margin-bottom: 8px;
    font-size: 20px;
}

.info-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.action-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.action-section h2 {
    color: var(--primary-cyan);
    margin-bottom: 25px;
    font-size: 28px;
}

/* Forms */
.ticket-form .form-group {
    margin-bottom: 25px;
}

.ticket-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(125, 211, 232, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.ticket-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Tickets List */
.tickets-list {
    margin-top: 40px;
}

.tickets-list h2 {
    color: var(--primary-cyan);
    margin-bottom: 25px;
    font-size: 28px;
}

.ticket-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(125, 211, 232, 0.2);
    border-color: var(--primary-cyan);
}

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

.ticket-id {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status.open {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.ticket-status.pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.ticket-status.closed {
    background: rgba(125, 125, 125, 0.2);
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.ticket-card h3 {
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.ticket-meta {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.ticket-preview {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
    font-size: 15px;
}

/* ============================================ */
/* DOCUMENTATION PAGE */
/* ============================================ */

.docs-search {
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(125, 211, 232, 0.3);
}

.docs-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.doc-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(125, 211, 232, 0.2);
}

.doc-category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.doc-category h3 {
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-size: 20px;
}

.doc-category p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.doc-count {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(125, 211, 232, 0.1);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================ */
/* LIVE CHAT PAGE */
/* ============================================ */

.chat-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.chat-status {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-indicator.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.status-indicator.offline {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--error);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-window {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 70%;
}

.chat-message.user {
    background: rgba(125, 211, 232, 0.2);
    border: 1px solid var(--primary-cyan);
    margin-left: auto;
}

.chat-message.agent {
    background: rgba(82, 212, 160, 0.2);
    border: 1px solid var(--eternal-color);
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-send-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-cyan));
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 211, 232, 0.4);
}

/* ============================================ */
/* RECOVERY SERVICE PAGE */
/* ============================================ */

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

.recovery-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.recovery-stat-card h4 {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.recovery-stat-card .value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-cyan);
}

.recovery-stat-card .label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 5px;
}

.recovery-request-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.recovery-history {
    margin-top: 40px;
}

.recovery-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.recovery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recovery-status {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.recovery-status.pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

.recovery-status.in-progress {
    background: rgba(125, 211, 232, 0.2);
    color: var(--primary-cyan);
}

.recovery-status.completed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .action-section {
        padding: 25px;
    }
    
    .docs-categories {
        grid-template-columns: 1fr;
    }
    
    .recovery-stats {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ICE CRYSTAL BUTTON COMPONENT
   ============================================ */

.ice-button-container {
    position: relative;
    display: inline-block;
}

.ice-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.ice-button {
    position: relative;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    background: linear-gradient(145deg, 
        rgba(125, 211, 232, 0.15),
        rgba(91, 200, 222, 0.1)
    );
    border: 2px solid rgba(125, 211, 232, 0.4);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 2;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(125, 211, 232, 0.3);
}

.ice-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(125, 211, 232, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.ice-button:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

.ice-button::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: all 0.6s ease;
}

.ice-button:hover::after {
    opacity: 1;
    top: 100%;
}

.ice-button:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 232, 0.8);
    box-shadow: 
        0 15px 50px rgba(125, 211, 232, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 60px rgba(125, 211, 232, 0.6);
}

.ice-button:active {
    transform: translateY(-2px) scale(0.95);
}

.frost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    opacity: 0.5;
    z-index: 3;
}

.glow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(
        circle,
        rgba(125, 211, 232, 1) 0%,
        rgba(125, 211, 232, 0) 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 3s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Stili base per coerenza con il template XColdPro */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a; 
    color: #e0e0e0;
    line-height: 1.6;
}

/* ===== DOCUMENTATION PAGE STYLES ===== */
.documentation-page {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.doc-header {
    text-align: center;
    margin-bottom: 60px;
}

.doc-header h1 {
    font-size: 3.5rem;
    color: #f9f9f9;
    margin-bottom: 15px;
}

.doc-subtitle {
    font-size: 1.3rem;
    color: #a0a0a0; 
}

/* --- Search Bar --- */
.doc-search {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.doc-search input {
    width: 100%;
    padding: 18px 60px 18px 60px;
    background: rgba(20, 20, 30, 0.8); 
    border: 2px solid rgba(125, 211, 232, 0.3);
    border-radius: 15px;
    color: #e0e0e0;
    font-size: 16px;
    backdrop-filter: blur(10px); 
    transition: border-color 0.3s ease;
}

.doc-search input:focus {
    outline: none;
    border-color: #7DD3E8; 
    box-shadow: 0 0 20px rgba(125, 211, 232, 0.3);
}

.doc-search::before {
    content: '🔍';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #7DD3E8; 
}

/* --- Category Header --- */
.doc-category {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(125, 211, 232, 0.2); 
}

.category-header h2 {
    font-size: 2.2rem;
    color: #7DD3E8; 
}

.category-count {
    background: rgba(125, 211, 232, 0.1); 
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #7DD3E8; 
    font-weight: 600;
}

/* --- Article Grid & Card --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Rimuovo la proprietà 'cursor: pointer' dalla card e la sposto sul link (<a>) */
.article-card-link {
    text-decoration: none; /* Rimuove la sottolineatura del link */
    color: inherit; /* Eredita il colore del testo dalla card */
    display: block; /* Rende il link a blocchi per coprire l'intera card */
    border-radius: 15px;
    /* Sposto tutti gli stili visivi della card sul link <a> */
    background: rgba(20, 20, 20, 0.6); 
    padding: 30px;
    border: 1px solid rgba(125, 211, 232, 0.1); 
    backdrop-filter: blur(10px); 
    transition: all 0.3s ease;
    cursor: pointer;
    /* Flexbox per allineamento interno */
    display: flex; 
    flex-direction: column;
    height: 100%; /* Assicura che riempia l'altezza della griglia */
}

/* Rinomino .article-card in .article-card-wrapper (non usa stili a parte) */
.article-card-wrapper {
    /* Stile precedente di .article-card, ora è un semplice contenitore */
    position: relative;
    /* Assicura che le card siano alte uguali */
    display: block; 
}


.article-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 232, 0.3); 
    box-shadow: 0 10px 30px rgba(125, 211, 232, 0.2);
}

/* STILE MIGLIORATO PER LE ICONE */
.article-icon {
    /* Simula l'effetto "card-icon" tecnico */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(125, 211, 232, 0.2), rgba(91, 201, 222, 0.2));
    border-radius: 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    
    font-size: 1.8rem; 
    /* Colore ciano forzato. Sui sistemi che supportano emoji monochromatici, 
       questo darà un look tecnico, altrimenti darà il colore del gradiente. */
    color: #7DD3E8; 
}

/* Stili per il testo */
.article-card-link h3 {
    font-size: 1.4rem;
    color: #f9f9f9;
    margin-bottom: 12px;
}

.article-card-link p {
    color: #a0a0a0; 
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #8a8a8a; 
    margin-top: auto; /* Spinge i metadati in fondo alla carta */
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .documentation-page {
        padding: 20px;
    }

    .doc-header h1 {
        font-size: 2.5rem;
    }

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



/* ===== ARTICLE PAGE STYLES ===== */
.article-page {
    max-width: 1111px;
    margin: 0 auto;
    padding: 40px 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(125, 211, 232, 0.1);
    border: 2px solid #7DD3E8;
    border-radius: 8px;
    color: #7DD3E8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-back:hover {
    background: rgba(125, 211, 232, 0.2);
    transform: translateX(-5px);
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(125, 211, 232, 0.2);
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(125, 211, 232, 0.1);
    border: 1px solid rgba(125, 211, 232, 0.3);
    border-radius: 20px;
    color: #7DD3E8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #f9f9f9;
    margin-bottom: 15px;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.article-content {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(125, 211, 232, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #7DD3E8;
    margin: 30px 0 15px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.related-articles {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid rgba(125, 211, 232, 0.2);
}

.related-articles h2 {
    text-align: center;
    color: #7DD3E8;
    margin-bottom: 30px;
}

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

.related-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(125, 211, 232, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 232, 0.3);
}

.related-card h3 {
    color: #7DD3E8;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.related-card p {
    color: #a0a0a0;
    font-size: 0.9rem;
}
/* End of SHIELD Components - Shared Styles */