/* Reset и базови стилове */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --success-color: #52c41a;
    --danger-color: #ff4d4f;
    --change-bg: #e6f4ff;
    --input-focus: #4a90e2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius: 16px;
    --radius-sm: 12px;
    --keypad-bg: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container { 
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Main Header (New Design) */
.main-header {
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.logo-link:hover .logo-icon {
    transform: scale(1.05);
}

.flag-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to bottom, 
        #ffffff 0%, 
        #ffffff 33.33%, 
        #00966e 33.33%, 
        #00966e 66.66%, 
        #d62612 66.66%, 
        #d62612 100%);
}

.flag-eu {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: #003399;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-eu::before {
    content: '★';
    font-size: 18px;
    color: #ffcc00;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1976d2;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
}

.nav-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0d47a1;
}

.nav-link.active {
    color: #0d47a1;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0d47a1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Old Header (Keep for backward compatibility if needed) */
.app-header {
    background: var(--card-bg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.icon-btn:hover {
    background-color: var(--bg-color);
}

.header-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.header-right {
    display: flex;
    gap: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.input-section {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.flag-icon {
    font-size: 16px;
    margin-left: 6px;
}

.input-wrapper {
    position: relative;
}

.equivalent-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
}

.equivalent-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.equivalent-value {
    color: var(--text-primary);
    font-weight: 600;
}

.modern-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modern-input::placeholder {
    color: #b0b0b0;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Change Display */
.change-display {
    background: var(--change-bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 24px 0;
    transition: all 0.3s ease;
}

.change-display.error {
    background: #fee;
    border: 2px solid var(--danger-color);
}

.change-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.change-currency-selector {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 8px;
}

.change-currency-selector input[type="radio"] {
    display: none;
}

.currency-option {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.change-currency-selector input[type="radio"]:checked + .currency-option {
    background: var(--primary-color);
    color: white;
}

.change-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    flex-wrap: wrap;
}

.change-amount span:first-child {
    font-size: 36px;
}

.change-amount span:first-child:contains("не се връща ресто") {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.refresh-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: auto;
}

.refresh-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Clear Button */
.clear-btn {
    width: 100%;
    padding: 14px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.clear-btn:hover {
    background: var(--bg-color);
    border-color: var(--text-secondary);
}

/* Breakdown Section */
.breakdown-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.breakdown-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.breakdown-info {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.4;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--border-color);
}

.breakdown-item span:last-child {
    font-weight: 500;
    text-align: right;
    min-width: 100px;
}

/* Info Card */
.info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.info-content {
    color: var(--text-secondary);
}

.info-lead {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-section {
    margin-top: 24px;
}

.info-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.info-list {
    padding-left: 20px;
    margin-top: 12px;
}

.info-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-list li i {
    color: var(--success-color);
    margin-right: 8px;
}

/* Footer */
.app-footer {
    background: #f8f9fa;
    padding: 32px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-text {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.footer-credit {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.footer-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .app-footer {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .footer-container {
        gap: 10px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-credit {
        font-size: 12px;
    }
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Timeline */
.timeline-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    padding-left: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 50px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-content {
    position: relative;
    z-index: 1;
}

.show-past-events-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.show-past-events-btn:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.show-past-events-btn i {
    transition: transform 0.3s;
}

.show-past-events-btn.active i {
    transform: rotate(180deg);
}

.timeline-past-events {
    animation: slideDown 0.3s ease;
}

.timeline-item.highlight {
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f8ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px -10px;
    border-left: 4px solid var(--primary-color);
}

.timeline-item.period {
    background: #fff9e6;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.timeline-date {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    position: relative;
    z-index: 2;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.date-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
    margin-top: 2px;
}

.date-year {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.period-date {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 120px;
}

.period-date .date-separator {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 4px;
}

.timeline-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.timeline-details {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 6px;
    font-size: 14px;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.info-box {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h4 i {
    color: #ffc107;
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Rules Section */
.rules-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rule-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.rule-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.rule-icon i {
    font-size: 24px;
    color: white;
}

.rule-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rule-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Content Card */
.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 0;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 36px;
    color: white;
}

.contact-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.contact-email:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.contact-email i {
    font-size: 20px;
}

/* Цифров клавиатур (Модал) */
.numeric-keypad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.numeric-keypad.active {
    display: flex;
}

.keypad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.numeric-keypad.active .keypad-overlay {
    opacity: 1;
}

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

.keypad-container {
    width: 100%;
    max-width: 500px;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    position: relative;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    animation: slideUpFromBottom 0.3s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
}

.numeric-keypad.active .keypad-container {
    transform: translateY(0);
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.keypad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.keypad-header span {
    font-size: 14px;
    font-weight: 600;
    color: #52c41a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keypad-header span::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.keypad-close {
    background: #f5f5f5;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.keypad-close:hover {
    background: #e8e8e8;
    color: #333;
    transform: scale(1.05);
}

.keypad-close:active {
    background: #ddd;
    transform: scale(0.95);
}

.keypad-close svg {
    width: 18px;
    height: 18px;
}

.keypad-display {
    display: block;
    margin-bottom: 15px;
}

.keypad-display input {
    width: 100%;
    padding: 16px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.keypad-display input:focus {
    border-color: #52c41a;
}

.keypad-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.keypad-btn {
    padding: 18px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background-color: #fff;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.keypad-btn:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.keypad-btn:active {
    transform: scale(0.97);
    background-color: #f0f0f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.keypad-btn.keypad-backspace {
    background-color: #fff;
    color: #000;
}

.keypad-btn.keypad-backspace:hover {
    background-color: #f9f9f9;
}

.keypad-btn.keypad-backspace:active {
    background-color: #f0f0f0;
}

.keypad-btn.keypad-clear {
    background-color: #fff;
    color: #ff4d4f;
    font-weight: 700;
}

.keypad-btn.keypad-clear:hover {
    background-color: #fee;
}

.keypad-btn.keypad-clear:active {
    background-color: #ffd6d6;
}

.keypad-btn.keypad-enter {
    background-color: #fff;
    color: #52c41a;
    grid-column: span 2;
    font-size: 24px;
}

.keypad-btn.keypad-enter:hover {
    background-color: #d4edda;
}

.keypad-btn.keypad-enter:active {
    background-color: #c3e6cb;
}

.keypad-clear-all-container {
    margin-top: 12px;
}

.keypad-btn.keypad-clear-all {
    width: 100%;
    background-color: #fff;
    color: #666;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    min-height: 52px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.keypad-btn.keypad-clear-all:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.keypad-btn.keypad-clear-all:active {
    background-color: #f0f0f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

 

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 16px;
    }

    .header-container {
        justify-content: space-between;
        gap: 16px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 1000;
    }

    .header-nav.active {
        max-height: 400px;
        padding: 12px 0;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: #f5f5f5;
        font-weight: 600;
    }

    .main-content {
        padding: 16px;
    }

    .calculator-card,
    .info-card {
        padding: 20px;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }

    .keypad-container {
        max-width: 100%;
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }

    .keypad-btn {
        padding: 18px;
        font-size: 22px;
        min-height: 56px;
    }

    .keypad-buttons {
        gap: 10px;
    }

    .keypad-display input {
        font-size: 24px;
        padding: 14px;
    }
}

@media (min-width: 769px) {
    .numeric-keypad {
        align-items: center;
        justify-content: center;
    }

    .keypad-container {
        border-radius: 20px;
        max-width: 500px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Error state */
.change-amount.error {
    color: var(--danger-color);
}

/* Share Menu */
.share-fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-fixed-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.share-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    animation: slideUpFade 0.3s ease;
    overflow: hidden;
}

.share-menu.active {
    display: block;
}

.share-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.share-menu-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.share-menu-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.share-menu-buttons {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.share-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.share-btn:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.share-btn:active {
    transform: translateX(2px) scale(0.98);
}

.share-viber {
    color: #665CAC;
}

.share-viber:hover {
    background: #f0eef8;
}

.share-viber svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-facebook {
    color: #1877F2;
}

.share-facebook:hover {
    background: #e7f0ff;
}

.share-telegram {
    color: #0088cc;
}

.share-telegram:hover {
    background: #e6f4ff;
}

.share-twitter {
    color: #000000;
}

.share-twitter:hover {
    background: #f0f0f0;
}

.share-threads {
    color: #000000;
}

.share-threads:hover {
    background: #f0f0f0;
}

.share-copy {
    color: var(--text-primary);
}

.share-copy:hover {
    background: #e9ecef;
}

.install-prompt {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.share-install {
    background: var(--primary-color);
    color: white;
}

.share-install:hover {
    background: var(--primary-hover);
    color: white;
}

/* Desktop стилове за share menu */
@media (min-width: 769px) {
    .share-menu {
        bottom: 90px;
        right: 20px;
        width: 280px;
    }
}

/* Responsive - Additional mobile styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0;
        margin-top: 4px;
        margin-left: 16px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 16px;
        padding-left: 0;
    }

    .timeline-item:not(:last-child)::after {
        left: 20px;
        top: 40px;
    }

    .timeline-date {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 0;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .share-menu {
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .share-fixed-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

.change-error-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid var(--danger-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    animation: slideDown 0.3s ease;
}

.change-error-message > div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.change-error-message i {
    color: var(--danger-color);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.change-error-message span {
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.change-error-message strong {
    color: var(--danger-color);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-block: 0;
    padding-inline: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #1976d2;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0d47a1;
    background: #e3f2fd;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.breadcrumb-separator {
    color: #bbb;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 2px;
}

.breadcrumb-separator svg {
    width: 8px;
    height: 12px;
    opacity: 0.6;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 12px 0;
    }

    .breadcrumb-list {
        padding: 0 16px;
        gap: 8px;
    }

    .breadcrumb-item {
        font-size: 13px;
        gap: 8px;
    }

    .breadcrumb-item a {
        padding: 3px 6px;
    }

    .breadcrumb-item.active {
        padding: 3px 6px;
    }

    .breadcrumb-separator {
        margin: 0 1px;
    }

    .breadcrumb-separator svg {
        width: 6px;
        height: 10px;
    }
}

/* iOS Install Modal */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ios-install-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.ios-install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ios-install-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ios-install-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ios-install-close:hover {
    background: #e8e8e8;
    color: #333;
}

.ios-install-close:active {
    background: #ddd;
    transform: scale(0.95);
}

.ios-install-steps {
    padding: 20px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.ios-step:last-child {
    margin-bottom: 0;
}

.ios-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.ios-step-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-top: 4px;
}

.ios-step-text strong {
    color: #1976d2;
    font-weight: 600;
}

.ios-step-text svg {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    color: #1976d2;
}

@media (max-width: 768px) {
    .ios-install-modal {
        padding: 16px;
    }

    .ios-install-content {
        border-radius: 16px;
        max-width: 100%;
    }

    .ios-install-header {
        padding: 16px;
    }

    .ios-install-header h3 {
        font-size: 18px;
    }

    .ios-install-steps {
        padding: 16px;
    }

    .ios-step {
        gap: 12px;
        margin-bottom: 20px;
    }

    .ios-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .ios-step-text {
        font-size: 14px;
    }
}
