/* =========================
   LAYOUT (FIXED HEADER & FOOTER)
========================= */

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    transition: background 0.3s, color 0.3s;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll */
    display: flex;
    flex-direction: column;
}

.site-header {
    flex-shrink: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.3));
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: #a78bfa;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Disabled UI states */
.disabled-item {
    opacity: 0.4 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(100%);
}


/* =========================
   ACCOUNT DROPDOWN
========================= */
.account-dropdown {
    position: relative;
    margin-left: 15px;
}

.account-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.3s;
    width: 170px; /* Fixed width to prevent header shift */
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #7c3aed;
}

.account-btn small {
    opacity: 0.6;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
}

.account-dropdown.open .account-menu {
    display: flex;
    animation: fadeInScale 0.2s ease-out;
}

.account-item {
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.account-item:hover {
    background: rgba(124, 58, 237, 0.2);
    opacity: 1;
    color: #a78bfa;
}

.account-item.active {
    background: rgba(124, 58, 237, 0.3);
    opacity: 1;
    font-weight: bold;
    color: #a78bfa;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-container {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Custom scrollbar for Webkit */
.scroll-container::-webkit-scrollbar {
    width: 6px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 92%;
    padding: 30px 0;
}

.site-footer {
    flex-shrink: 0;
    padding: 12px 0; 
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    width: 94%;
    display: flex;
    justify-content: center; /* Center theme buttons */
    align-items: center;
    position: relative; /* For absolute copyright */
}

.footer-theme-controls {
    display: flex;
    gap: 10px;
}

.footer-theme-controls button {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.copyright {
    position: absolute;
    right: 0;
    font-size: 0.75rem;
    opacity: 0.5;
}

/*
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1200px;
    gap: 30px;
}
*/

/* grid stays unchanged */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.section {
    padding: 40px 0;
}

/* =========================
   CARD
========================= */

.card {
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    /* Smooth transition for transform */
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-10px); /* smaller movement feels nicer */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.card-header {
    padding: 12px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
    font-size: 14px;
    text-align: left;
}

/* =========================
   THEMES
========================= */

/* GLASS */
.theme-glass {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
}

.theme-glass .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-glass .card-header {
    background: #0f172a; /*rgba(255, 255, 255, 0.08);*/
}

/* NAVY */
.theme-navy {
    background: linear-gradient(135deg, #0b1a2b, #142c44);
    color: #e6edf3;
}

.theme-navy .card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-navy .card-header {
    background: #1e3a8a;
    color: white;
}

/* SLATE */
.theme-slate {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #e5e7eb;
}

.theme-slate .card {
    background: #2d3748;
}

.theme-slate .card-header {
    background: #4b5563;
}

/* SOFT SLATE */
.theme-softslate {
    background: linear-gradient(135deg, #2a2f3a, #3b4252);
    color: #eaeef5;
}

.theme-softslate .card {
    background: #3a4150;
    border: 1px solid #555;
}

.theme-softslate .card-header {
    background: #60a5fa; /* vivid blue */
    color: #0b1020;
}

/* MIDNIGHT */
.theme-midnight {
    background: linear-gradient(135deg, #0b0f1f, #1e1b4b);
    color: #e0e7ff;
}

.theme-midnight .card {
    background: rgba(255, 255, 255, 0.05);
}

.theme-midnight .card-header {
    background: #4338ca;
}

/* =========================
   SEMANTIC HEADER COLORS
========================= */

.semantic .card[data-type="solutions"] .card-header {
    background: #2563eb;
}

.semantic .card[data-type="alpha"] .card-header {
    background: #7c3aed;
}

.semantic .card[data-type="portfolio"] .card-header {
    background: #ea580c;
}

.semantic .card[data-type="risk"] .card-header {
    background: #dc2626;
}

.semantic .card[data-type="platform"] .card-header {
    background: #0d9488;
}

.semantic .card[data-type="leadership"] .card-header {
    background: #ca8a04;
}

.semantic .card[data-type="innovation"] .card-header {
    background: #f43f5e;
}

/* Pinkish red */
.semantic .card[data-type="growth"] .card-header {
    background: #10b981;
}

/* Emerald green */
.semantic .card[data-type="insights"] .card-header {
    background: #3b82f6;
}

/* Bright blue */
.semantic .card[data-type="strategy"] .card-header {
    background: #8b5cf6;
}

/* Violet */
.semantic .card[data-type="analytics"] .card-header {
    background: #f97316;
}

/* Orange */
.semantic .card[data-type="security"] .card-header {
    background: #ef4444;
}

/* Red */
.semantic .card[data-type="community"] .card-header {
    background: #14b8a6;
}

/* Teal */
.semantic .card[data-type="vision"] .card-header {
    background: #facc15;
}

/* Bright yellow */
.semantic .card[data-type="engagement"] .card-header {
    background: #ec4899;
}

/* Pink */
.semantic .card[data-type="performance"] .card-header {
    background: #22d3ee;
}

/* Cyan */
.semantic .card[data-type="efficiency"] .card-header {
    background: #a78bfa;
}

/* Lavender */
.semantic .card[data-type="experience"] .card-header {
    background: #f87171;
}

/* Soft red */
.semantic .card[data-type="creativity"] .card-header {
    background: #4ade80;
}

/* Light green */
.semantic .card[data-type="collaboration"] .card-header {
    background: #60a5fa;
}

/* Sky blue */
.semantic .card[data-type="reliability"] .card-header {
    background: #fbbf24;
}

/* Golden yellow */
.semantic .card[data-type="adaptability"] .card-header {
    background: #f472b6;
}

/* Rose */
.semantic .card[data-type="insightful"] .card-header {
    background: #06b6d4;
}

/* Tealish cyan */
.semantic .card[data-type="initiative"] .card-header {
    background: #c084fc;
}

/* Soft violet */
.semantic .card[data-type="motivation"] .card-header {
    background: #f8710e;
}

/* Bright orange */
.semantic .card[data-type="focus"] .card-header {
    background: #f43f5e;
}

/* Coral red */
.semantic .card[data-type="deep-blue"] .card-header {
    background: #1e40af;
}

/* Darker blue */
.semantic .card[data-type="indigo"] .card-header {
    background: #4f46e5;
}

/* Deep indigo */
.semantic .card[data-type="burnt-orange"] .card-header {
    background: #b45309;
}

/* Dark orange */
.semantic .card[data-type="crimson"] .card-header {
    background: #991b1b;
}

/* Dark red */
.semantic .card[data-type="teal-dark"] .card-header {
    background: #0f766e;
}

/* Deep teal */
.semantic .card[data-type="golden"] .card-header {
    background: #a16207;
}

/* Dark gold */
.semantic .card[data-type="rosewood"] .card-header {
    background: #9d174d;
}

/* Dark pink/magenta */
.semantic .card[data-type="forest-green"] .card-header {
    background: #065f46;
}

/* Dark green */
.semantic .card[data-type="cobalt"] .card-header {
    background: #1e3a8a;
}

/* Strong dark blue */
.semantic .card[data-type="plum"] .card-header {
    background: #5b21b6;
}

/* Dark purple */
.semantic .card[data-type="brick"] .card-header {
    background: #7f1d1d;
}

/* Deep brick red */
.semantic .card[data-type="amber-dark"] .card-header {
    background: #78350f;
}

/* Dark amber */
.semantic .card[data-type="slate-teal"] .card-header {
    background: #134e4a;
}

/* Slate-teal */
.semantic .card[data-type="midnight"] .card-header {
    background: #0f172a;
}

/* Very dark blue */
.semantic .card[data-type="wine"] .card-header {
    background: #701a75;
}

/* Dark magenta */
.semantic .card[data-type="cherry"] .card-header {
    background: #7f1d1d;
}

/* Deep cherry red */
.semantic .card[data-type="sage"] .card-header {
    background: #166534;
}

/* Dark muted green */
.semantic .card[data-type="steel-blue"] .card-header {
    background: #1e40af;
}

/* Steel blue */
.semantic .card[data-type="rust"] .card-header {
    background: #9a3412;
}

/* Dark rust */
.semantic .card[data-type="orchid"] .card-header {
    background: #6d28d9;
}

/* Dark orchid purple */


/* =========================
   TEXT HIGHLIGHTS
========================= */

.hl-alpha {
    color: #a78bfa;
    font-weight: bold;
}

.hl-risk {
    color: #f87171;
    font-weight: bold;
}

.hl-portfolio {
    color: #fb923c;
    font-weight: bold;
}

.hl-platform {
    color: #2dd4bf;
    font-weight: bold;
}

.hl-lead {
    color: #facc15;
    font-weight: bold;
}

/* ========================= */

button {
    margin: 4px;
    padding: 6px 10px;
}

/* =========================
   SEARCH BAR (GLOBAL)
========================= */

.search-container {
    position: relative;
    margin: 20px auto 45px auto; /* Centered with significant bottom space */
    width: 100%;
    max-width: 600px;
}

#searchInput {
    width: 100%;
    padding: 14px 20px;
    padding-right: 40px; /* Space for clear icon at the very end */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e293b;
    color: #f8fafc;
    font-size: 1rem;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 4px 6px rgba(0,0,0,0.2),
        0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

#searchInput:focus {
    background: #0f172a;
    border-color: #7c3aed;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.4),
        0 0 0 3px rgba(124, 58, 237, 0.3),
        0 8px 15px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.clear-icon {
    position: absolute;
    right: 15px; /* Moved all the way to the end */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    pointer-events: none;
}

.clear-icon.visible {
    opacity: 1;
    pointer-events: auto;
}

.clear-icon:hover {
    color: #f8fafc;
}

/* =========================
   MODAL / WIDGET (GLOBAL)
========================= */

#modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#modal.active {
    display: flex;
}

#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Crucial: don't block clicks when hidden */
    z-index: 999;
}

#modal-overlay.active { 
    opacity: 1; 
    pointer-events: auto;
}

/* =========================
   THEME BUTTONS
========================= */
.theme-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button[data-theme] {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

button[data-theme]:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* =========================
   TABS
========================= */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: -1px; /* Overlap with content border */
    position: relative;
    z-index: 2;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    transition: all 0.2s;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.tab-button:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

#tab-contents {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-top-left-radius: 0; /* Merge with active tab */
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

#modal-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
}

.modal-card {
    background: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-card .card-header {
    background: #0f172a;
    padding: 18px 24px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%; /* Ensure it covers full width */
    box-sizing: border-box;
}

.modal-card .card-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 80vh;
}

/* Modal Field Grid */
.contact-detail-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail-label {
    font-weight: 600;
    opacity: 0.5;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value Colors */
.val-name, .val-title { color: #818cf8; font-weight: 700; }
.val-email { color: #fbbf24; }
.val-phone { color: #34d399; }
.val-website { color: #60a5fa; text-decoration: none; }
.val-website:hover { text-decoration: underline; }
.val-category { color: #c084fc; font-weight: 600; }
.val-notes, .val-content { color: #cbd5e1; font-style: italic; line-height: 1.5; }

.edit-input {
    width: 100%;
    box-sizing: border-box; /* Crucial for header alignment */
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.edit-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #0f172a;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* =========================
   UTILITIES & STATES
========================= */

.loading {
    padding: 20px;
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

.error {
    padding: 20px;
    text-align: center;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

mark {
    background: #facc15;
    color: #000;
    border-radius: 2px;
    padding: 0 2px;
}

#confirmDialog {
    background: #1e293b;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.dialog-content {
    padding: 30px;
    text-align: center;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin-top: 20px;
}

#confirmOkBtn { background: #ef4444; color: white; border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer; font-weight: 600; }
#confirmCancelBtn { background: #4b5563; color: white; border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer; font-weight: 600; }

/* =========================
   CONTACTS TABLE
========================= */

.contacts-table-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: inherit;
}

th {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th:hover {
    background: rgba(124, 58, 237, 0.4);
}

th.sort-asc::after { content: " ↑"; }
th.sort-desc::after { content: " ↓"; }

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95em;
}

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

tr.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

tr.clickable-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
}

.status-active { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.status-inactive { background: rgba(107, 114, 128, 0.2); color: #9ca3af; border: 1px solid #6b7280; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }

/* =========================
   HOME PAGE (LANDING)
========================= */

.hero {
    text-align: center;
    padding: 60px 0 20px 0;
    animation: fadeInDown 0.8s ease-out;
}

.hero .logo-img {
    height: 60px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    margin: 0;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.6;
    max-width: 600px;
    margin: 15px auto;
}

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

.gateway-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gateway-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.gateway-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gateway-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    transition: transform 0.4s;
}

.gateway-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(124, 58, 237, 0.4);
}

.gateway-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.gateway-card p {
    font-size: 0.95rem;
    opacity: 0.5;
    line-height: 1.6;
}

.btn-enter {
    margin-top: 25px;
    padding: 10px 24px;
    background: #7c3aed;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.gateway-card:hover .btn-enter {
    background: #6d28d9;
}

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

/* =========================
   WIDGET LINKS & HTML CONTENT
========================= */

.value-display a, .widget-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
}

.value-display a:hover, .widget-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.value-display p {
    margin: 0 0 10px 0;
}

.value-display p:last-child {
    margin-bottom: 0;
}

/* =========================
   WIDGET BUTTONS
========================= */

.btn-icon {
    background: transparent;
    color: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: scale(1.05);
}
