/* ============================================
   Programare Evenimente - Arise
   Design inspirat din variabilele de brand
   ============================================ */

:root {
    /* Culori brand */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-rare-sky: #8f85ff;
    --color-rare-sky-light: rgba(143, 133, 255, 0.15);
    --color-royal-violet: #331062;
    --color-blue-charcoal: #3b4559;
    --color-neo-jade: #75ffab;
    --color-lynx-white: #f6f6f6;
    --color-dark-rift: #081117;
    --color-light-grey: rgba(59, 69, 89, 0.1);
    --color-white-01: #f8f8f8;
    --color-gray-01: #d9d9d9;
    /* Tipografie */
    --font-primary: "Neue Haas Grotesk", "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-h1-desktop: 55px;
    --font-size-h2-desktop: 34px;
    --font-size-h3-desktop: 28px;
    --font-size-h4-desktop: 22px;
    --font-size-p-desktop: 16px;
    --font-size-p-small-desktop: 14px;
    --font-size-label-desktop: 14px;
    --font-size-h1-mobile: 34px;
    --font-size-h2-mobile: 24px;
    --font-size-h3-mobile: 22px;
    --font-size-h4-mobile: 18px;
    --font-size-p-mobile: 15px;
    --font-size-p-small-mobile: 14px;
    --font-size-label-mobile: 12px;
    /* Utilitare */
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(8, 17, 23, 0.35);
    --transition: 0.25s ease;
    /* Tema întunecată (implicit) */
    --theme-bg: var(--color-dark-rift);
    --theme-text: var(--color-lynx-white);
    --theme-text-muted: var(--color-gray-01);
    --theme-surface: rgba(51, 16, 98, 0.4);
    --theme-surface-hover: var(--color-rare-sky-light);
    --theme-border: var(--color-blue-charcoal);
    --theme-topbar-bg: rgba(8, 17, 23, 0.92);
    --theme-hero-overlay: linear-gradient(180deg, transparent 0%, rgba(8, 17, 23, 0.6) 50%, var(--color-dark-rift) 100%);
    --theme-shadow: 0 4px 24px rgba(8, 17, 23, 0.35);
    --theme-input-bg: rgba(59, 69, 89, 0.2);
    --theme-modal-bg: var(--color-dark-rift);
    --theme-modal-overlay: rgba(8, 17, 23, 0.85);
    --theme-btn-text: var(--color-white);
}

/* ----- Tema luminoasă (contrast mărit pentru lizibilitate) ----- */
[data-theme="light"] {
    --theme-bg: var(--color-lynx-white);
    --theme-text: #0a0f14;
    --theme-text-muted: #3b4559;
    --theme-surface: var(--color-white-01);
    --theme-surface-hover: var(--color-rare-sky-light);
    --theme-border: rgba(59, 69, 89, 0.35);
    --theme-topbar-bg: rgba(255, 255, 255, 0.98);
    --theme-hero-overlay: linear-gradient(180deg, transparent 0%, rgba(246, 246, 246, 0.5) 50%, var(--color-lynx-white) 100%);
    --theme-shadow: 0 4px 24px rgba(59, 69, 89, 0.15);
    --theme-input-bg: var(--color-white);
    --theme-modal-bg: var(--color-white);
    --theme-modal-overlay: rgba(8, 17, 23, 0.45);
    --theme-btn-text: var(--color-white);
}

[data-theme="light"] .hero-content h1 {
    color: #0a0f14;
}

[data-theme="light"] .hero-content p {
    color: #2d3748;
    opacity: 1;
}

[data-theme="light"] .logo {
    color: #0a0f14;
}

[data-theme="light"] .logo-right .logo-text {
    color: #1a7f3e;
}

[data-theme="light"] .date-day {
    color: #5b4dcc;
}

[data-theme="light"] .modal-event-name {
    color: #1a7f3e;
}

[data-theme="light"] .event-card .event-time {
    color: #1a7f3e;
}

[data-theme="light"] .event-card.active {
    border-color: #1a7f3e;
    box-shadow: 0 0 0 1px #1a7f3e;
}

[data-theme="light"] .event-detail-date,
[data-theme="light"] .event-detail-time {
    color: #1a7f3e;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 1.05rem;
}

/* ----- Scrollbar modern (toate zonele cu overflow) ----- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-rare-sky) var(--theme-border);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--theme-border);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--color-rare-sky);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--color-royal-violet);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--color-rare-sky);
    opacity: 0.9;
}

*::-webkit-scrollbar-corner {
    background: var(--theme-border);
    border-radius: 4px;
}

[data-theme="light"] * {
    scrollbar-color: var(--color-rare-sky) rgba(0, 0, 0, 0.08);
}

[data-theme="light"] *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] *::-webkit-scrollbar-thumb {
    background: var(--color-rare-sky);
}

[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
    background: var(--color-royal-violet);
}

/* ----- Topbar ----- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--theme-topbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--theme-border);
}

.topbar-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    text-decoration: none;
    color: var(--theme-text);
    font-weight: 700;
    font-size: var(--font-size-h4-desktop);
    letter-spacing: 0.05em;
    transition: color var(--transition), transform var(--transition);
}

.logo:hover {
    color: var(--color-rare-sky);
    transform: scale(1.02);
}

.logo-left .logo-text {
    background: linear-gradient(135deg, var(--color-rare-sky), var(--color-neo-jade));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-right .logo-text {
    color: var(--color-neo-jade);
}

.logo .logo-img {
    display: block;
    height: 2rem;
    width: auto;
    max-height: 44px;
    object-fit: contain;
}

/* Comutator temă */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    background: var(--theme-surface-hover);
    border-color: var(--color-rare-sky);
    color: var(--color-rare-sky);
}

.theme-toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .theme-icon-light {
    display: none;
}

.theme-toggle .theme-icon-dark {
    display: flex;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-light {
    display: flex;
}

/* Buton fullscreen */
.fullscreen-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.fullscreen-btn:hover {
    background: var(--theme-surface-hover);
    border-color: var(--color-rare-sky);
    color: var(--color-rare-sky);
}

.fullscreen-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn .fullscreen-exit {
    display: none;
}

.fullscreen-btn .fullscreen-enter {
    display: flex;
}

.is-fullscreen .fullscreen-btn .fullscreen-enter {
    display: none;
}

.is-fullscreen .fullscreen-btn .fullscreen-exit {
    display: flex;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 320px;
    max-height: 50vh;
}

.hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.hero-video,
.hero-media::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::before {
    content: '';
    background: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1920&q=80') center/cover no-repeat;
}

.hero-video {
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--theme-hero-overlay);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 2rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--theme-text);
}

.hero-content p {
    color: var(--theme-text);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ----- Sections ----- */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.25rem 1.75rem;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 1.35rem;
    color: var(--theme-text);
}

/* ----- Carousel (Swiper) ----- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
    background: var(--color-rare-sky-light);
    border-color: var(--color-rare-sky);
    color: var(--color-rare-sky);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.swiper-dates,
.swiper-events {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 6px 0;
}

.swiper-dates .swiper-wrapper,
.swiper-events .swiper-wrapper {
    align-items: stretch;
    padding: 5px 0;
}

.swiper-dates .swiper-slide {
    width: auto;
    height: auto;
}

.swiper-events .swiper-slide {
    width: auto;
    height: auto;
}

.carousel-btn,
.date-card,
.event-card {
    touch-action: manipulation;
}

/* Date cards - ziua în stânga, în dreapta: numele zilei sus, luna+anul dedesubt */
.date-card {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    min-height: 88px;
    padding: 1.15rem 1.25rem;
    background: var(--theme-surface);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    color: var(--theme-text);
    font-family: inherit;
    text-align: left;
    flex-shrink: 0;
    box-sizing: border-box;
}

.date-card:hover {
    border-color: var(--color-rare-sky);
    background: var(--theme-surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
}

.date-card.active {
    border-color: var(--color-rare-sky);
    background: var(--theme-surface-hover);
    box-shadow: 0 0 0 1px var(--color-rare-sky);
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-rare-sky);
    flex-shrink: 0;
}

.date-right {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.date-weekday {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--theme-text);
}

.date-month-year {
    font-size: 1rem;
    color: var(--theme-text-muted);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Event cards */
.event-card {
    width: 285px;
    padding: 1.75rem;
    background: var(--theme-surface);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-family: inherit;
    color: var(--theme-text);
    gap: 0.35rem;
}

.event-card:hover {
    border-color: var(--color-neo-jade);
    background: var(--theme-surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow);
}

.event-card.active {
    border-color: var(--color-neo-jade);
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--color-neo-jade);
}

.event-card .event-name {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.event-card .event-time {
    font-size: 1.05rem;
    color: var(--color-neo-jade);
    line-height: 1.3;
}

/* ----- Secțiune detalii eveniment (în fluxul paginii, sub carousel) ----- */
.event-detail-section,
#event-detail-card-wrapper {
    margin-top: 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--theme-border);
}

#event-detail-card-wrapper[hidden] {
    display: none;
}

.event-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.event-detail-main {
    flex: 1 1 280px;
    min-width: 0;
}

.event-detail-section .event-detail-desc-wrap {
    margin-bottom: 1.25rem;
}

.event-detail-trainer {
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
    text-align: center;
}

.event-detail-trainer-img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 0.75rem;
    background: var(--theme-surface);
}

.event-detail-trainer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
}

.event-detail-trainer-desc {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    line-height: 1.45;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    text-align: left;
}

.event-detail-section .event-detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--theme-text);
    line-height: 1.25;
}

.event-detail-section .event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.event-detail-section .event-detail-date,
.event-detail-section .event-detail-time {
    font-size: 1.1rem;
    color: var(--color-neo-jade);
    font-weight: 500;
}

.event-detail-section .event-detail-desc {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.event-detail-section .btn-programare {
    width: auto;
    min-width: 200px;
    margin-top: 0;
}

/* ----- Modal & Form ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--theme-modal-overlay);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--theme-modal-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: 2.15rem;
    box-shadow: var(--theme-shadow);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--theme-text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
    color: var(--theme-text);
    background: var(--theme-surface-hover);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--theme-text);
}

.modal-event-name {
    color: var(--color-neo-jade);
    font-size: var(--font-size-p-desktop);
}

.form-register .form-group {
    margin-bottom: 1.25rem;
}

.form-register label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--theme-text-muted);
}

.form-register input[type="text"],
.form-register input[type="email"] {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--theme-input-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 1.05rem;
}

.form-register input::placeholder {
    color: var(--theme-text-muted);
    opacity: 0.8;
}

/* Câmpuri cu tastatură custom (nu deschid tastatura Android) */
.custom-input {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.1rem;
    background: var(--theme-input-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.custom-input:empty::before {
    content: attr(data-placeholder);
    color: var(--theme-text-muted);
    opacity: 0.8;
}

.custom-input.active {
    border-color: var(--color-rare-sky);
    box-shadow: 0 0 0 3px var(--color-rare-sky-light);
}

/* Tastatură custom în stil Android – taste pătrate, numere pe rândul 1 */
.custom-keyboard-wrap {
    margin-top: 1.25rem;
    padding: 0.75rem;
    width: 100%;
    max-width: 560px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    background: rgba(18, 28, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .custom-keyboard-wrap {
    background: rgba(245, 247, 250, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.custom-keyboard-wrap[hidden] {
    display: none !important;
}

.custom-keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    -webkit-user-select: none;
    user-select: none;
}

.custom-keyboard-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

/* Taste pătrate, dimensiune fixă (stil Android) */
.custom-keyboard .key {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: var(--theme-modal-bg);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.08s ease, background 0.1s ease, opacity 0.1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-keyboard .key:hover {
    background: var(--theme-surface-hover);
    opacity: 0.95;
}

.custom-keyboard .key:active {
    transform: scale(0.92);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.custom-keyboard .key-shift {
    width: 52px;
    min-width: 52px;
    font-size: 1.15rem;
    font-weight: 600;
}

.custom-keyboard .key-shift.shift-active {
    background: var(--color-rare-sky);
    color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.custom-keyboard .key-backspace {
    width: 52px;
    min-width: 52px;
    font-size: 1.2rem;
}

.custom-keyboard-row-bottom {
    margin-top: 0.15rem;
}

.custom-keyboard .key-space {
    flex: 1;
    max-width: 180px;
    min-width: 80px;
    width: auto;
}

.custom-keyboard .key-done {
    width: 56px;
    min-width: 56px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--color-rare-sky);
    color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.custom-keyboard .key-done:hover {
    background: var(--color-primary-hover, var(--color-rare-sky));
    color: var(--color-white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--color-rare-sky), var(--color-royal-violet));
    color: var(--theme-btn-text);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-neo-jade), var(--color-rare-sky));
    color: var(--color-dark-rift);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-rare-sky-light);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(117, 255, 171, 0.15);
    color: var(--color-neo-jade);
    border: 1px solid var(--color-neo-jade);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    body {
        font-size: var(--font-size-p-mobile);
    }

    .topbar-inner {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: var(--font-size-h4-mobile);
    }

    .hero-content h1 {
        font-size: var(--font-size-h1-mobile);
    }

    .hero-content p {
        font-size: var(--font-size-p-mobile);
    }

    .hero-content {
        padding: 1.5rem 1rem 2rem;
    }

    .section-title {
        font-size: var(--font-size-h2-mobile);
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .date-card {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        min-height: 76px;
        padding: 0.875rem 1rem;
        gap: 0.35rem;
    }

    .date-day {
        font-size: 1.85rem;
    }

    .date-weekday {
        font-size: 0.95rem;
    }

    .date-month-year {
        font-size: var(--font-size-label-mobile);
    }

    .event-card {
        width: 240px;
    }

    .event-card .event-name {
        font-size: var(--font-size-h4-mobile);
    }

    .modal-header h3 {
        font-size: var(--font-size-h3-mobile);
    }

    .form-register label {
        font-size: var(--font-size-label-mobile);
    }

    .form-register input {
        font-size: var(--font-size-p-mobile);
    }
}

/* ----- Display mare portret (ex: 2160×3860) ----- */
@media (min-width: 2100px) and (min-height: 3800px) {
    html {
        font-size: 19px;
    }

    body {
        font-size: 1.3rem;
    }

    .topbar-inner {
        max-width: 1900px;
        padding: 1.75rem 2rem;
    }

    .logo {
        font-size: 1.7rem;
    }

    .logo .logo-img {
        height: 2.4rem;
    }

    .theme-toggle,
    .fullscreen-btn {
        width: 54px;
        height: 54px;
    }

    .hero {
        min-height: 480px;
        max-height: 34vh;
    }

    .hero-media {
        min-height: 480px;
    }

    .hero-content {
        max-width: 1900px;
        padding: 3rem 2rem 4.5rem;
    }

    .hero-content h1 {
        font-size: 3.6rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1.45rem;
    }

    .section {
        max-width: 1900px;
        padding: 2.75rem 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .carousel-wrapper {
        gap: 1rem;
    }

    .carousel-btn {
        width: 58px;
        height: 58px;
    }

    .carousel-btn svg {
        width: 30px;
        height: 30px;
    }

    .carousel {
        gap: 1.35rem;
        padding: 0.5rem 0;
    }

    .date-card {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        min-height: 108px;
        padding: 1.35rem 1.5rem;
        gap: 0.5rem;
    }

    .date-day {
        font-size: 2.9rem;
    }

    .date-weekday {
        font-size: 1.15rem;
    }

    .date-month-year {
        font-size: 1.1rem;
    }

    .event-card {
        width: 340px;
        padding: 2.15rem;
    }

    .event-card .event-name {
        font-size: 1.6rem;
    }

    .event-card .event-time {
        font-size: 1.2rem;
    }

    .event-detail-section,
    #event-detail-card-wrapper {
        margin-top: 2rem;
        padding: 2.25rem 0;
    }

    .event-detail-section .event-detail-title {
        font-size: 2.15rem;
        margin-bottom: 1.25rem;
    }

    .event-detail-section .event-detail-meta {
        margin-bottom: 1.5rem;
        gap: 0.75rem 2rem;
    }

    .event-detail-section .event-detail-date,
    .event-detail-section .event-detail-time {
        font-size: 1.25rem;
    }

    .event-detail-section .event-detail-desc {
        font-size: 1.15rem;
        margin-bottom: 1.75rem;
    }

    .event-detail-section .btn-programare {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }

    .event-detail-layout {
        gap: 2.5rem;
    }

    .event-detail-trainer {
        max-width: 280px;
    }

    .event-detail-trainer-img {
        max-width: 220px;
    }

    /* Modal mai sus pe ecran (la nivelul privirii) */
    .modal-overlay {
        padding-top: 10vh;
        padding-bottom: 2rem;
    }

    .modal {
        max-width: 640px;
        padding: 2.75rem;
    }

    .custom-keyboard-wrap {
        max-width: 640px;
    }

    .modal-header h3 {
        font-size: 1.85rem;
    }

    .modal-event-name {
        font-size: 1.2rem;
    }

    .form-register .form-group {
        margin-bottom: 1.5rem;
    }

    .form-register label {
        font-size: 1.05rem;
    }

    .form-register input {
        padding: 1.1rem 1.25rem;
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 1.1rem 1.5rem;
        font-size: 1.2rem;
    }

    .modal-close {
        width: 50px;
        height: 50px;
    }
}
