
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Renkler, gölgeler ve yarıçaplar için kök değişkenler */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-primary: #fafbff;
    --bg-secondary: #f1f5ff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border: #e2e8f0;
    --border-focus: #8b5cf6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Genel sıfırlamalar ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Yeni Arka Plan Etkisi */
.background-radial-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, var(--primary) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, var(--secondary) 0%, transparent 50%);
    opacity: 0.15;
    z-index: -1;
    animation: backgroundMove 20s infinite alternate ease-in-out;
}

@keyframes backgroundMove {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.body-no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease-in-out;
    min-width: 0;
}

.header {
    min-height: 80px;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap; 
    gap: 1rem;
}

.header::before {
    display: none;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 1rem;
    transition: all 0.3s ease;
}

.header-logo:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.header-logo-image {
    height: 2.5rem; 
    width: auto;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    min-width: 0; 
    flex-shrink: 1; 
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
     white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; 
}

.header-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    
}

.header-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0; 
    min-width: fit-content;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap; 
    min-width: fit-content;
}

.header-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.header-link .link-text {
    display: none; 
    white-space: nowrap;
}

.lang-switcher-images {
    display: flex;
    gap: 0.5rem;
}

.lang-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.lang-flag:hover {
    transform: scale(1.1);
}

.lang-flag.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4);
}


/* Responsive Tasarım */
@media (min-width: 768px) {
    .header-links {
        gap: 2rem;
    }

    .header-link {
        font-size: 1rem;
    }

    .header-link .link-text {
        display: inline; 
    }
}
@media (max-width: 500px) {
    .header-logo {
        gap: 0.5rem;
    }

    .header-logo-image {
        height: 2rem;
    }

    .header-title {
        font-size: 1.1rem;
        white-space: normal;
    }

    .header-subtitle {
        font-size: 0.8rem;
        white-space: normal;
    }

    .header-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .header-link {
        font-size: 0.9rem;
    }
}

.content {
    padding: 2.5rem;
    min-width: 0;

}

.text-container {
    min-width: 0;
    word-wrap: break-word;
    hyphens: auto;
}

.contact-link {
    word-break: break-all;
    hyphens: auto;
}

.tabs-container {
    display: flex;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-height: 50px;
}

.tab {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap; 
    min-width: fit-content;
    flex: 1 1 auto; 
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab span {
    position: relative;
    z-index: 1;
}

.tab:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.tab.active::before {
    opacity: 0.1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

.section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section:hover::before {
    opacity: 1;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.925rem;
    word-wrap: break-word; 
    hyphens: auto;
}

input[type="text"], 
input[type="time"], 
input[type="file"], 
select, 
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    outline: none;
}

input[type="text"]:focus, 
input[type="time"]:focus, 
input[type="file"]:focus, 
select:focus, 
textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

input[type="text"]:hover, 
input[type="time"]:hover, 
select:hover, 
textarea:hover {
    border-color: var(--text-muted);
}

.course-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.course-input input {
    flex: 1;
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap; 
    min-width: fit-content;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--text-secondary) 0%, var(--text-muted) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 0.5rem; 
    width: 40px;
    height: 40px;
    font-size: 1rem; 
}

.btn-small.btn-secondary {
    width: auto;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.time-range {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.results {
    margin-top: 2rem;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-card > .btn {
    margin-top: 1.5rem;
}

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

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.schedule-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.schedule-card h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.course-item {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* ORTAK VE ONLİNE DERSLER İÇİN YENİ STİLLER */

.course-item.common-course {
    background: rgba(139, 92, 246, 0.1); 
    color: #4c1d95; 
    border-left-color: var(--primary);
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.course-item.online-courses-list {
    background: rgba(245, 158, 11, 0.1); 
    color: #92400e; 
    border-left-color: var(--accent);
    margin-top: 1.5rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.course-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    hyphens: auto;
    word-wrap: break-word;
    hyphens: auto;
}

.course-details {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.5;
}

.free-days {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-weight: 500;
    border-left: 4px solid var(--success);
    font-size: 0.925rem;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1.5rem;
}

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

.error {
    background: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border-left: 4px solid var(--danger);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.success {
    background: rgba(16, 185, 129, 0.1);
    color: #14532d;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border-left: 4px solid var(--success);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.file-status {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-weight: 500;
}

.file-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #14532d;
    border-left: 4px solid var(--success);
}

.file-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
    border-left: 4px solid var(--danger);
}

.file-status.loading {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border-left: 4px solid var(--text-muted);
}

input[type="file"] {
    background: var(--bg-input);
    cursor: pointer;
    border: 2px dashed var(--border);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    margin-right: 1rem;
    font-size: 0.925rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.course-code-display {
    font-weight: 600;
    min-width: 120px;
    color: var(--primary);
    font-size: 0.925rem;
    letter-spacing: 0.025em;
}

.preferred-section-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.preferred-section-input:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.section-selection {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.925rem !important;
    flex: 1;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        border-radius: var(--radius-lg);
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .header {
        min-height: auto;
        padding: 1rem;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tabs-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab {
        flex: auto; 
        min-width: 120px; 
        text-align: center;
    }

    .course-input {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .time-range {
        grid-template-columns: 1fr;
    }
    
    .preferred-section-input {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .course-code-display {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
    }
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-logo {
        justify-content: center;
    }
    
    .header-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tabs-container {
        flex-direction: column;
    }
    
    .tab {
        min-width: auto;
        width: 100%;
    }
}

@media print {
    .btn, .tabs, input, select, .header-links, .background-radial-gradient {
        display: none !important;
    }
    
    .schedule-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2rem;
    padding-top: 3.5rem; 
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    
    max-width: 600px; 
    width: 90%; 
    
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 300px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.scrollable-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}


.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

#popup-text-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

#popup-text-content ul, #popup-text-content ol {
    margin-left: 1.5rem;
    list-style-position: inside;
}

#popup-text-content li {
    margin-bottom: 0.5rem;
}

.header.header-wrapped {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    min-height: 100px;
}

.header.header-wrapped .header-logo {
    justify-content: center;
}

.header.header-wrapped .header-links {
    width: 100%;
    justify-content: center;
}

.header {
    transition: all 0.3s ease-in-out;
}

.header-title,
.header-subtitle {
    transition: all 0.3s ease-in-out;
}

.tab {
    transition: all 0.3s ease-in-out;
}

.btn {
    transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
}

.course-name,
.course-details,
label,
.header-title,
.header-subtitle,
.tab span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.collapsible-header {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.collapsible-header h4 {
    margin: 0;
    padding: 0;
    font-size: 1.25rem; 
    font-family: inherit; 
}

.collapsible-header i {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.collapsible-header.active {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.collapsible-header.active i {
    transform: rotate(180deg);
    color: var(--primary);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-bottom: 0;
}

.collapsible-content.open {
    max-height: 500px; 
    padding-bottom: 1rem;
    transition: max-height 0.5s ease-in;
}

.collapsible-content p {
    margin-bottom: 0;
}

.how-to-steps, .contact-links-container, .faq-container {
    display: grid;
    gap: 1.25rem; 
    margin-top: 1rem;
}

.how-to-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.features-list {
    grid-template-columns: 1fr;
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.25rem; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem; 
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-card-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.info-card-icon {
    display: none; 
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem; 
    margin-top: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.25rem;
}

.primary-icon { color: var(--primary); }
.secondary-icon { color: var(--secondary); }
.success-icon { color: var(--success); }
.accent-icon { color: var(--accent); }

.popup-outro-text {
    margin-top: 2rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-text {
    font-weight: 500;
    font-size: 1rem;
    word-break: break-all;
}

.note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.popup-header-icon {
    display: none; 
}

.popup-header-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.popup-header-plain {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .popup-header-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }

    .popup-header-title {
        font-size: 1.5rem;
    }
}
