/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (OBSIDIAN CYBERPUNK THEME)
   ========================================================================== */
:root {
    --bg-dark: #07070a;
    --bg-card: rgba(17, 17, 27, 0.75);
    --bg-card-hover: rgba(22, 22, 37, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(34, 211, 238, 0.5);
    
    /* Harmonious Brand Colors */
    --color-primary: #8b5cf6;       /* Violet */
    --color-secondary: #22d3ee;     /* Cyan */
    --color-accent: #ec4899;        /* Pink */
    
    /* UI States */
    --color-success: #10b981;       /* Emerald */
    --color-warning: #f59e0b;       /* Amber */
    --color-error: #ef4444;         /* Rose */
    
    /* Text Styles */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Fonts */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows & Glows */
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.2);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 45%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.3));
}

.logo-text {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #e4e4e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    color: var(--color-secondary);
    -webkit-text-fill-color: var(--color-secondary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    font-weight: 300;
}

.settings-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-secondary);
    box-shadow: var(--glow-cyan);
    transform: rotate(45deg);
}

/* ==========================================================================
   GLASS CARDS
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-main);
    padding: 1.75rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
}

/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */
.search-section {
    display: flex;
    justify-content: center;
}

.search-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
}

.search-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.search-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1rem 1rem 1rem 2.75rem;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-form input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
    background: rgba(0, 0, 0, 0.45);
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.primary-btn:active {
    transform: translateY(0);
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.glow-btn:hover::after {
    left: 140%;
}

.btn-spinner {
    display: none;
}

.search-form.loading .btn-spinner {
    display: inline-block;
}
.search-form.loading span {
    display: none;
}
.search-form.loading button {
    opacity: 0.8;
    pointer-events: none;
}

.demo-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.demo-link-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}

.demo-link-btn:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.bullet {
    color: var(--text-muted);
}

/* ==========================================================================
   LOADING & ERROR STATES
   ========================================================================== */
.hidden {
    display: none !important;
}

.loading-state, .error-state {
    display: flex;
    justify-content: center;
}

.loading-card, .error-card {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.skeleton-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-title {
    height: 20px;
    width: 60%;
}

.skeleton-subtitle {
    height: 14px;
    width: 40%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-block {
    height: 70px;
}

.skeleton-text-line {
    height: 12px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text-line:last-of-type {
    width: 80%;
    margin-bottom: 1.5rem;
}

.loading-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    animation: text-pulse 2s infinite ease-in-out;
}

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

/* Error Card */
.error-icon-wrapper {
    font-size: 3rem;
    color: var(--color-error);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.error-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   RESULTS DASHBOARD & GRID
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 2rem;
    align-items: start;
}

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

.left-col, .right-col {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ==========================================================================
   THE SCORECARD VISUAL PASSPORT (EXPORT TARGET)
   ========================================================================== */
.scorecard-capture-wrapper {
    width: 100%;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

.scorecard-visual-card {
    width: 440px;
    height: 460px;
    background: #09090f;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    font-family: var(--font-sans);
}

/* Glow bubbles in card */
.card-bg-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.glow-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

.glow-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 75%);
    bottom: -80px;
    left: -50px;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.logo-watermark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    box-shadow: var(--glow-cyan);
    object-fit: cover;
}

.user-meta {
    text-align: right;
}

.user-meta h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-secondary);
}

/* Score Area */
.card-score-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1.5rem 0;
    z-index: 2;
}

.score-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s ease-in-out;
}

.score-labels {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-family: var(--font-mono);
}

.score-total {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.grade-badge-container {
    position: absolute;
    bottom: -5px;
    right: 110px;
    background: #09090f;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grade-badge {
    background: linear-gradient(135deg, var(--color-accent), #f43f5e);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

/* Card Title */
.card-title-section {
    display: flex;
    justify-content: center;
    z-index: 2;
}

.gamified-badge {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: var(--glow-purple);
    animation: float 3s infinite ease-in-out;
}

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

.badge-icon {
    font-size: 0.95rem;
}

/* Card Metrics */
.card-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    z-index: 2;
}

.card-metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   ACTIONS PANEL (DOWNLOADS/SHARES)
   ========================================================================== */
.actions-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.actions-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button {
    width: 100%;
    justify-content: center;
    height: 48px;
}

.social-btn {
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.twitter-btn {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.twitter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.linkedin-btn {
    background: #0077b5;
}

.linkedin-btn:hover {
    background: #006396;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.3);
    transform: translateY(-2px);
}

.copied-alert {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ==========================================================================
   SCORE BREAKDOWN (RIGHT SIDEBAR)
   ========================================================================== */
.score-breakdown-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.breakdown-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-label span:first-child {
    color: var(--text-secondary);
}

.breakdown-label span:last-child {
    font-family: var(--font-mono);
    color: #ffffff;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.1, 1.0);
}

.profile-fill {
    background: linear-gradient(to right, var(--color-secondary), #06b6d4);
}
.quality-fill {
    background: linear-gradient(to right, var(--color-primary), #7c3aed);
}
.community-fill {
    background: linear-gradient(to right, var(--color-accent), #f43f5e);
}
.activity-fill {
    background: linear-gradient(to right, var(--color-warning), #eab308);
}

/* ==========================================================================
   RECOMMENDATIONS CHECKLIST
   ========================================================================== */
.checklist-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.checklist-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.checklist-item.success {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.checklist-item.warning {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.checklist-item i {
    margin-top: 0.2rem;
    font-size: 1rem;
}

.checklist-item.success i {
    color: var(--color-success);
}

.checklist-item.warning i {
    color: var(--color-warning);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.item-title {
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 300;
}

/* ==========================================================================
   ADVERTISEMENT PLACEHOLDERS
   ========================================================================== */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
    width: 100%;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-sans);
    padding: 1rem;
}

.ad-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.ad-size {
    font-size: 0.85rem;
    font-weight: 500;
}

.ad-banner-top .ad-placeholder,
.ad-banner-bottom .ad-placeholder {
    width: 728px;
    height: 90px;
}

.ad-box-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
}

@media (max-width: 768px) {
    .ad-banner-top .ad-placeholder,
    .ad-banner-bottom .ad-placeholder {
        width: 100%;
        height: 60px;
    }
    .ad-size {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 500px;
    background: #0b0b12;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #ffffff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-mono);
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-secondary);
}

.input-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.token-status {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
}

.danger-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-error);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--color-error);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
    body {
        background-image: 
            radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    }
    
    .app-container {
        padding: 1rem 0.75rem;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .logo-icon {
        font-size: 2.0rem;
    }

    .tagline {
        font-size: 0.95rem;
    }
    
    .settings-btn {
        top: -0.25rem;
        right: 0.25rem;
        width: 36px;
        height: 36px;
    }
    
    .glass-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    /* Stack Search elements on mobile */
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-form input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .search-form button {
        width: 100%;
        justify-content: center;
        height: 48px;
    }

    .demo-links {
        font-size: 0.8rem;
    }
    
    /* Layout columns for results */
    .dashboard-grid {
        gap: 1.5rem;
    }
    
    .actions-buttons {
        gap: 0.5rem;
    }
}

/* Specific scaling for the Scorecard block so it fits standard screens */
@media (max-width: 480px) {
    .scorecard-capture-wrapper {
        height: 340px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-top: 0.5rem;
    }
    
    .scorecard-visual-card {
        transform: scale(0.72);
        transform-origin: center center;
        margin: 0;
        flex-shrink: 0;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .scorecard-capture-wrapper {
        height: 290px;
    }
    
    .scorecard-visual-card {
        transform: scale(0.62);
    }
}