/* Vars for light theme */
:root {
    --bg: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text: #2d3748;
    --text-secondary: #718096;
    --primary: #38b2ac; /* Teal */
    --primary-dark: #319795;
    --shadow: rgba(56, 178, 172, 0.1);
    --border: rgba(255, 255, 255, 0.9);
    --toggle-icon: '🌙';
    --text-rgb: 45, 55, 72;
}

/* Dark theme overrides */
[data-theme="dark"] {
    --bg: #1a202c;
    --card-bg: rgba(45, 55, 72, 0.5);
    --text: #e2e8f0;
    --text-secondary: #a0aec0;
    --primary: #4fd1c5; /* Lighter Teal */
    --primary-dark: #38b2ac;
    --shadow: rgba(79, 209, 197, 0.1);
    --border: rgba(74, 85, 104, 0.5);
    --toggle-icon: '☀️';
    --text-rgb: 229, 231, 235;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
    visibility: visible;
    opacity: 1;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--text-rgb), 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    animation: pulse-text 1.5s infinite ease-in-out;
}

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

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

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    background-image: linear-gradient(180deg, transparent, var(--shadow));
    color: var(--text);
    margin: 0;
    padding: 1.5rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

header, main, footer {
    width: 100%;
    max-width: 500px;
}

header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px 0 var(--shadow);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px var(--shadow));
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover {
    transform: scale(1.1);
}

.title-group {
    text-align: left;
    flex: 1;
    margin-left: 1rem;
}

.toggle-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Mobiili toggle nupud */
.mobile-toggles {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.theme-toggle.mobile,
.lang-toggle.mobile {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 80px;
    height: 40px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
    font-family: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-weight: 600;
}

.theme-toggle.mobile::after {
    font-size: 0.8rem;
}

[data-theme="dark"] .theme-toggle.mobile::after {
    content: '☀️ Teema';
}

[data-theme="light"] .theme-toggle.mobile::after,
.theme-toggle.mobile::after {
    content: '🌙 Teema';
}

.lang-toggle.mobile {
    font-size: 0.8rem;
    font-weight: 700;
}

.theme-toggle.mobile:hover,
.lang-toggle.mobile:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

h1 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

main {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px 0 var(--shadow);
    animation: fade-in 0.7s 0.1s ease-out both;
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

main h2 {
    color: var(--text);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem;
    background-image: linear-gradient(to right, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px 0 var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    cursor: pointer;
    min-height: 48px;
    transform: translateZ(0);
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px 0 var(--shadow);
}

.donate-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.donate-btn .platform-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Revolution ja panga info sektsioonid */
.revolut-info,
.bank-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease, 
                padding 0.25s ease,
                margin 0.25s ease;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    background: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.revolut-info.active,
.bank-info.active {
    max-height: 600px;
    opacity: 1;
    margin-top: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 4px 15px 0 var(--shadow);
}

.revolut-details,
.bank-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.revolut-field,
.bank-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.revolut-field label,
.bank-field label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.copy-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.copy-field input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.copy-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.copy-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    overflow: hidden;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text);
    color: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.revolut-note,
.bank-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

/* Disclaimer */
.donation-disclaimer {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(var(--text-rgb), 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Social sharing */
.social-share {
    margin: 2rem 0;
}

.social-share h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary), 0.3);
}

.share-btn .share-icon {
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(var(--primary), 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.faq-question:hover {
    background: rgba(var(--text-rgb), 0.05);
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-weight: bold;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Support section */
.support-section {
    margin: 2rem 0;
}

.support-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.support-section > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary), 0.3);
}

.support-icon {
    font-size: 1.5rem;
}

.support-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.support-text strong {
    font-weight: 600;
    font-size: 0.9rem;
}

.support-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Theme toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 44px;
    height: 36px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
    z-index: 1000;
    font-family: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.theme-toggle::after {
    content: var(--toggle-icon);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Language toggle */
.lang-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 44px;
    height: 36px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
    z-index: 1000;
    font-family: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lang-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.5rem 0;
    margin-top: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 -4px 20px 0 var(--shadow);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.eofh-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.eofh-link:hover {
    color: var(--primary);
}

.eofh-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s;
    display: block;
}

.eofh-link:hover .eofh-logo {
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-link,
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.contact-link:hover,
.social-link:hover {
    color: var(--primary);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 20px rgba(var(--primary), 0.3);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--primary), 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* KINDEL scroll-to-top nupp alati paremal all (desktop + mobiil) */
.scroll-to-top {
  position: fixed !important;
  right: 1.2rem !important;
  left: unset !important;
  bottom: 1.2rem !important;
  z-index: 9999 !important;
  margin: 0 !important;
}
@media (max-width: 480px) {
  .scroll-to-top {
    right: 0.7rem !important;
    left: unset !important;
    bottom: 0.7rem !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced copy success animation */
.copy-btn.copy-success {
    background: #22c55e !important;
    animation: copied-success 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes copied-success {
    0% { 
        transform: scale(1);
        background: var(--primary);
    }
    50% { 
        transform: scale(1.2) rotate(10deg);
        background: #22c55e;
    }
    100% { 
        transform: scale(1);
        background: #22c55e;
    }
}

.copy-tooltip.enhanced {
    background: #22c55e;
    top: -35px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive design */
@media (max-width: 768px) {
    body { 
        padding: 1rem;
        font-size: 18px;
        line-height: 1.6;
    }
    
    header, main, footer {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    header {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .title-group {
        text-align: center;
    }
    
    .toggle-buttons {
        display: none;
    }
    
    .mobile-toggles {
        display: flex;
    }
    
    .donate-btn {
        padding: 1.25rem;
        font-size: 1.1rem;
        min-height: 56px;
        border-radius: 1rem;
        font-weight: 700;
    }
    
    .platform-icon {
        font-size: 1.5rem;
    }
    
    .copy-field {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .copy-field input {
        font-size: 1.1rem;
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .copy-btn {
        width: 48px;
        height: 48px;
        border-radius: 0.75rem;
        font-size: 1.1rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .faq-answer {
        max-height: 0;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px;
    }
    
    .revolut-info.active,
    .bank-info.active {
        max-height: 700px;
    }
    
    .revolut-info,
    .bank-info {
        transition: max-height 0.1s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.1s ease;
        will-change: max-height, opacity;
    }
    
    .faq-answer {
        transition: max-height 0.1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s ease;
        will-change: max-height, opacity;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .scroll-to-top {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        left: unset !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
        font-size: 17px;
    }
    
    header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .title-group {
        text-align: center;
        margin-left: 0;
    }
    
    .toggle-buttons {
        display: none;
    }
    
    .mobile-toggles {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .theme-toggle.mobile,
    .lang-toggle.mobile {
        width: 70px;
        height: 36px;
        font-size: 0.7rem;
    }
    
    main {
        padding: 1.25rem;
    }
    
    .donation-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .donate-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .copy-field input {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .copy-btn {
        width: 44px;
        height: 44px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .faq-item.active .faq-answer {
        max-height: 450px;
    }
    
    .revolut-info.active,
    .bank-info.active {
        max-height: 650px;
    }
    
    .scroll-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        left: unset !important;
        width: 45px;
        height: 45px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .contact-link,
    .social-link {
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
button:focus,
a:focus,
input:focus {
    outline: none;
}

.donate-btn:focus-visible,
.share-btn:focus-visible,
.copy-btn:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible,
.faq-question:focus-visible,
.support-btn:focus-visible,
.contact-link:focus-visible,
.social-link:focus-visible,
.scroll-to-top:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.1);
}

.faq-question:focus-visible {
    background: rgba(var(--text-rgb), 0.08);
}

/* Touch device optimizations */
.donate-btn, .copy-btn, .contact-link, .social-link, .theme-toggle {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .copy-field input {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 0.5rem;
    }
    
    .donate-btn {
        -webkit-appearance: none;
        appearance: none;
    }
}
