/* CSS Design System for slobozia.info URL Shortener */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #121829;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Violet */
    --accent-pink: #ec4899; /* Pink */
    --accent-teal: #14b8a6; /* Teal */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(99, 102, 241, 0.15);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --font-sans: 'Outfit', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    position: relative;
    padding-bottom: 2rem;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.25;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: float-blob 20s infinite alternate;
}
.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-secondary);
    bottom: 10%;
    right: -50px;
    animation: float-blob 25s infinite alternate-reverse;
}
.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    top: 40%;
    left: 45%;
    animation: float-blob 30s infinite alternate;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Utilities */
.hidden {
    display: none !important;
}
.text-center {
    text-align: center;
}
.font-semibold {
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}
.btn-block {
    width: 100%;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-medium);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Form Styles */
.card-header {
    margin-bottom: 1.8rem;
}
.card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.card-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.icon-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    margin-bottom: 1.25rem;
}
.input-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.input-group label i {
    color: var(--accent-primary);
    margin-right: 0.3rem;
}
.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="password"],
.input-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}
.input-group input:focus,
.input-group textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--glass-glow);
}
.input-group textarea {
    resize: vertical;
}

.url-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
}
.url-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 12px var(--glass-glow);
}
.url-prefix {
    padding: 0.8rem 0 0.8rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    user-select: none;
    font-weight: 500;
}
.url-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding-left: 0.3rem !important;
    box-shadow: none !important;
}

/* Tooltip and Help */
.tooltip {
    cursor: help;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.tooltip:hover {
    color: var(--accent-primary);
}

/* Tabs */
.tabs-container {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tab-btn.active {
    color: white;
}
.tab-slider {
    position: absolute;
    height: calc(100% - 0.5rem);
    width: calc(50% - 0.25rem);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    top: 0.25rem;
    left: 0.25rem;
    transition: transform var(--transition-medium);
    z-index: 1;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-medium);
}

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

/* Theme Options Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.theme-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: var(--transition-fast);
}
.theme-option input {
    display: none;
}
.theme-option span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}
.theme-preview {
    width: 100%;
    height: 35px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}
/* Theme styles previews */
.glass-theme {
    background: radial-gradient(circle, #2e1065 0%, #090514 100%);
}
.dark-theme {
    background: #111827;
}
.sunset-theme {
    background: linear-gradient(135deg, #fda4af, #f472b6, #fb7185);
}
.minimal-theme {
    background: #f8fafc;
}
.retro-theme {
    background: #fef08a;
}
.theme-option:hover,
.theme-option.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}
.theme-option.active span {
    color: white;
    font-weight: 600;
}

/* Auth Wrapper */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 1.5rem;
}
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.auth-logo i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
}
.auth-logo h2 span {
    color: var(--accent-pink);
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.error-msg {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* Dashboard Layout */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo h1 {
    font-size: 1.35rem;
    font-weight: 800;
}
.logo h1 span {
    color: var(--accent-pink);
}
.logo h1 .badge {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.app-main {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Right Panel: List & stats */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.list-stats {
    display: flex;
    gap: 0.75rem;
}
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    min-width: 75px;
}
.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-pink);
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}
.search-box input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-primary);
}

.filter-options {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-btn:hover {
    color: white;
}
.filter-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Links Container / Grid */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 580px;
    overflow-y: auto;
    padding-right: 0.4rem;
}

/* Custom Scrollbar */
.links-container::-webkit-scrollbar {
    width: 5px;
}
.links-container::-webkit-scrollbar-track {
    background: transparent;
}
.links-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.links-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Link Cards */
.link-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-medium);
}
.link-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}
.link-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0; /* Ensures text truncation works */
}
.link-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.link-icon-badge.type-url {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.link-icon-badge.type-message {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.link-meta {
    min-width: 0;
}
.link-short-url-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.link-short-url-row h3 {
    font-size: 1rem;
    font-weight: 700;
    word-break: break-all;
}
.link-target-row {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}
.link-date-row {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.6);
    margin-top: 0.25rem;
}

.link-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.clicks-indicator {
    background: rgba(20, 184, 166, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.25);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-action-group {
    display: flex;
    gap: 0.4rem;
}
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    outline: none;
}
.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-icon.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Empty, Loading states */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    gap: 0.8rem;
}
.loading-state i {
    font-size: 2rem;
    color: var(--accent-primary);
}
.empty-state i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.05);
}

/* Modals */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 8, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn var(--transition-fast);
}
.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 2.2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp var(--transition-medium);
}
.modal-card.modal-small {
    max-width: 400px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}
.modal-close:hover {
    color: white;
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.8rem;
}

.success-link-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
#success-link-text {
    font-weight: 700;
    color: white;
    word-break: break-all;
    font-size: 1.05rem;
}

.qr-share-section {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: center;
}
.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 14px;
}
.qr-box img {
    width: 120px;
    height: 120px;
    display: block;
}
.qr-box .btn {
    margin-top: 0.2rem;
}
.share-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.share-box h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.share-buttons {
    display: flex;
    gap: 0.6rem;
}
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}
.share-btn:hover {
    transform: translateY(-2px);
}
.share-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.share-btn.telegram {
    background: #0088cc;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}
.share-btn.email {
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.qr-display-container {
    background: white;
    padding: 0.75rem;
    border-radius: 16px;
}
.qr-display-container img {
    width: 200px;
    height: 200px;
    display: block;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.toast-icon {
    color: var(--accent-primary);
}

/* Responsiveness */
@media (max-width: 992px) {
    .app-main {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    .dashboard-wrapper {
        padding: 0.5rem;
    }
    .app-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .link-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .link-actions-wrapper {
        justify-content: space-between;
    }
    .qr-share-section {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .qr-box {
        width: 100%;
        max-width: 160px;
    }
    .share-box {
        text-align: center;
    }
    .share-buttons {
        justify-content: center;
    }
}
        .pinned-title {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #f59e0b;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
            border-bottom: 1px solid rgba(234, 179, 8, 0.15);
            padding-bottom: 8px;
        }
        .pinned-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        .pinned-dropdown-wrapper {
            position: relative;
            z-index: 1000;
        }
        .pinned-trigger {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(234, 179, 8, 0.05);
            border: 1px solid rgba(234, 179, 8, 0.2);
            border-radius: 20px;
            padding: 8px 16px;
            color: #f59e0b;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            user-select: none;
        }
        .pinned-trigger:hover {
            background: rgba(234, 179, 8, 0.12);
            border-color: rgba(234, 179, 8, 0.35);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(234, 179, 8, 0.1);
        }
        .pinned-trigger:active {
            transform: translateY(0);
        }
        .pinned-trigger i {
            color: #fbbf24;
        }
        .pinned-dropdown {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: 420px;
            max-width: calc(100vw - 40px);
            background: rgba(22, 30, 49, 0.97);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(234, 179, 8, 0.4);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(234, 179, 8, 0.1);
            display: none;
            animation: fadeIn 0.2s ease-out;
            max-height: 480px;
            overflow-y: auto;
            z-index: 2147483647 !important;
        }
        .pinned-dropdown::-webkit-scrollbar {
            width: 5px;
        }
        .pinned-dropdown::-webkit-scrollbar-track {
            background: transparent;
        }
        .pinned-dropdown::-webkit-scrollbar-thumb {
            background: rgba(234, 179, 8, 0.2);
            border-radius: 10px;
        }
        .pinned-dropdown.show {
            display: block;
        }
        .pinned-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 16px;
            transition: transform 0.2s, border-color 0.2s;
        }
        .pinned-item:hover {
            transform: translateY(-1px);
            border-color: rgba(234, 179, 8, 0.25);
            background: rgba(255, 255, 255, 0.02);
        }
        /* Top Navigation simple branding */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            box-sizing: border-box;
            padding: 20px 40px;
            background: rgba(10, 14, 26, 0.3);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            z-index: 9999;
        }
        .top-nav .logo {
            font-size: 1.3rem;
            font-weight: 800;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .top-nav .logo span {
            color: var(--accent-primary);
        }
        .pinned-text-mobile {
            display: none;
        }

        @media (max-width: 600px) {
            .pinned-text-desktop {
                display: none;
            }
            .pinned-text-mobile {
                display: inline;
            }
            .top-nav {
                padding: 15px 10px;
                width: 100%;
                box-sizing: border-box;
                position: relative;
                z-index: 9999;
            }
            .news-header h1 {
                font-size: 2rem;
            }
            .pinned-dropdown-wrapper {
                position: static;
            }
            .pinned-dropdown {
                position: absolute;
                top: calc(100% + 12px);
                left: 10px;
                right: 10px;
                width: auto;
                max-width: none;
                background: rgba(22, 30, 49, 0.98);
                backdrop-filter: blur(24px);
                -webkit-backdrop-filter: blur(24px);
                box-shadow: 0 30px 60px rgba(0,0,0,0.95);
                border: 1px solid rgba(234, 179, 8, 0.5);
                border-radius: 20px;
                z-index: 2147483647 !important;
            }
        }
