* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4444;
    --primary-dark: #cc0000;
    --danger-color: #ff0000;
    --warning-color: #ff8800;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --border-color: #444444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    margin-top: 10px;
    position: relative;
}

.lang-dropdown-wrapper {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.lang-dropdown {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 22px 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: 500;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 10px;
    min-width: 50px;
    width: auto;
    height: 32px;
    line-height: 1.2;
}

.lang-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.lang-dropdown:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.lang-dropdown option {
    background: var(--card-bg);
    color: white;
    padding: 10px;
}

.floating-share-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.floating-share-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

.floating-share-btn svg {
    width: 28px;
    height: 28px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    opacity: 0.9;
    font-size: 1.1em;
}

/* Old lang-switcher styles removed - now using dropdown */

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--border-color);
}

.status-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.status-card h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: bold;
}

.status-card.safe h2 {
    color: #4CAF50;
}

.status-card.warning h2 {
    color: var(--warning-color);
}

.status-card.danger h2 {
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

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

.status-card p {
    color: var(--text-light);
    margin: 5px 0;
    font-size: 1em;
}

.status-card.safe {
    border-color: #4CAF50;
}

.status-card.safe .status-icon {
    color: #4CAF50;
}

.status-card.warning {
    border: 3px solid var(--warning-color);
    background: rgba(255, 136, 0, 0.1);
}

.status-card.warning .status-icon {
    color: var(--warning-color);
}

.status-card.danger {
    border: 3px solid var(--danger-color);
    background: rgba(255, 0, 0, 0.1);
}

.status-card.danger .status-icon {
    color: var(--danger-color);
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.checkin-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
}

.checkin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 68, 68, 0.6);
    border-color: var(--primary-dark);
}

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

.checkin-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.settings-section,
.info-section,
.contact-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.settings-section h3,
.info-section h3,
.contact-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.3em;
}

.punchline-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.punchline-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95em;
}

.punchline-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.punchline-input-wrapper textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95em;
    font-family: inherit;
    resize: none;
    min-height: 80px;
    cursor: text;
}

.punchline-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.punchline-change-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.punchline-change-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: rotate(15deg) scale(1.1);
}

.punchline-change-btn svg {
    width: 24px;
    height: 24px;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn span {
    white-space: nowrap;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.share-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-vk:hover {
    background: #0077ff;
    border-color: #0077ff;
    color: white;
}

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

.share-copy:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

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

@media (max-width: 600px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-btn {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .share-btn span {
        font-size: 0.85em;
    }
}

.contact-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95em;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.seo-article {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-article h2 {
    color: var(--text-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.seo-article h3 {
    color: var(--text-color);
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.seo-article p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.seo-article ul,
.seo-article ol {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 25px;
}

.seo-article li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.seo-article strong {
    color: var(--text-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .seo-article {
        padding: 20px;
        margin-top: 20px;
    }
    
    .seo-article h2 {
        font-size: 1.5em;
    }
    
    .seo-article h3 {
        font-size: 1.2em;
    }
    
    .seo-article p,
    .seo-article li {
        font-size: 1em;
    }
}

.info-section p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-section #app-description {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.info-section #why-needed {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-light);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    background: #1a1a1a;
    color: var(--text-color);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #222222;
}

.input-group input::placeholder {
    color: #888;
}

.save-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    border: 2px solid var(--primary-color);
}

.save-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.test-btn {
    width: 100%;
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    border: 2px solid var(--warning-color);
}

.test-btn:hover {
    background: #e68900;
    border-color: #e68900;
}

.test-btn:disabled {
    background: var(--text-light);
    border-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.user-email-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    border: 2px solid var(--primary-color);
}

.user-email-section h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.3em;
}

.user-email-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95em;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.info-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    opacity: 0.8;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

footer a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    border: 2px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.share-modal h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.5em;
    padding-right: 40px;
}

.share-modal p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 400px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-text {
    flex: 1;
}

.toast-text strong {
    display: block;
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 4px;
    font-weight: 600;
}

.toast-text p {
    color: var(--text-light);
    font-size: 0.85em;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .status-card {
        padding: 20px;
    }
    
    .checkin-btn {
        padding: 15px;
        font-size: 1.1em;
    }
    
    .floating-share-btn {
        width: 48px;
        height: 48px;
        top: 15px;
        right: 15px;
    }
    
    .floating-share-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 95vh;
    }
    
    .toast-notification {
        max-width: calc(100% - 40px);
        padding: 14px 18px;
    }
}

