/* Hibuk App Styles - Mobile First */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700;800&display=swap');

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

.hibuk-app {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow-x: hidden;
}

/* Accessibility */
.hibuk-app.high-contrast {
    background: #000 !important;
}

.hibuk-app.high-contrast .hibuk-benefit-card,
.hibuk-app.high-contrast .hibuk-search-box,
.hibuk-app.high-contrast .hibuk-details-box,
.hibuk-app.high-contrast .hibuk-qr-card,
.hibuk-app.high-contrast .hibuk-form-container,
.hibuk-app.high-contrast .hibuk-modal-content {
    background: #000 !important;
    border: 2px solid #fff !important;
}

.hibuk-app.high-contrast * {
    color: #fff !important;
}

.hibuk-app.large-text {
    font-size: 120%;
}

.hibuk-app.large-text h1 { font-size: 38px !important; }
.hibuk-app.large-text h2 { font-size: 34px !important; }
.hibuk-app.large-text h3 { font-size: 22px !important; }
.hibuk-app.large-text p,
.hibuk-app.large-text span,
.hibuk-app.large-text button,
.hibuk-app.large-text input,
.hibuk-app.large-text label {
    font-size: 18px !important;
}

.hibuk-screen {
    display: none;
    min-height: 100vh;
    padding: 50px 20px 120px;
}

.hibuk-screen.active {
    display: block;
}

.hibuk-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100,181,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header */
.hibuk-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hibuk-header-emoji {
    font-size: 60px;
    margin-bottom: 10px;
}

.hibuk-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hibuk-header p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* Search Box */
.hibuk-search-box {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hibuk-search-box span {
    font-size: 22px;
}

.hibuk-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    width: 100%;
    font-family: 'Heebo', sans-serif;
}

.hibuk-search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Categories */
.hibuk-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 25px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.hibuk-category-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 25px;
    padding: 12px 22px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.hibuk-category-btn:hover,
.hibuk-category-btn:focus {
    background: rgba(255,255,255,0.15);
    outline: 2px solid #64B5F6;
}

.hibuk-category-btn.active {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    box-shadow: 0 4px 15px rgba(100,181,246,0.4);
}

/* Benefits Grid */
.hibuk-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 400px) {
    .hibuk-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.hibuk-benefit-card {
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: none;
    text-align: right;
    width: 100%;
}

.hibuk-benefit-card:hover,
.hibuk-benefit-card:focus {
    transform: scale(1.02);
    outline: 2px solid #64B5F6;
}

.hibuk-benefit-card .bg-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    border-radius: 50%;
}

.hibuk-benefit-card .emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

.hibuk-benefit-card h3 {
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hibuk-benefit-card p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hibuk-benefit-card .discount {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

/* Bottom Navigation */
.hibuk-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    padding: 15px 20px 30px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.hibuk-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hibuk-nav-btn:focus {
    outline: 2px solid #64B5F6;
    border-radius: 10px;
}

.hibuk-nav-btn .icon {
    font-size: 26px;
}

.hibuk-nav-btn .label {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.hibuk-nav-btn.active .label {
    color: #64B5F6;
    font-weight: 600;
}

.hibuk-nav-btn.center {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 25px rgba(100,181,246,0.5);
}

.hibuk-nav-btn.center .icon {
    font-size: 32px;
}

/* Back Button */
.hibuk-back-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
}

.hibuk-back-btn:focus {
    outline: 2px solid #64B5F6;
}

/* Benefit Detail */
.hibuk-benefit-detail-card {
    background: rgba(255,255,255,0.1);
    border-radius: 35px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.hibuk-benefit-detail-card .emoji {
    font-size: 80px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hibuk-benefit-detail-card h2 {
    color: white;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hibuk-benefit-detail-card > p {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    margin-bottom: 20px;
}

.hibuk-benefit-detail-card .big-discount {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 18px;
    color: white;
    font-size: 32px;
    font-weight: 800;
}

/* Details Box */
.hibuk-details-box {
    background: rgba(255,255,255,0.08);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
}

.hibuk-details-box h3 {
    color: #64B5F6;
    font-size: 16px;
    margin-bottom: 20px;
}

.hibuk-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.hibuk-detail-row .icon {
    font-size: 24px;
}

.hibuk-detail-row .text strong {
    color: white;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.hibuk-detail-row .text p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

.hibuk-online-box {
    background: rgba(100,181,246,0.15);
    border-radius: 20px;
    padding: 20px;
    margin-top: 10px;
}

.hibuk-code-box {
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.hibuk-code-box span {
    color: white;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 3px;
}

.hibuk-code-box button {
    background: #64B5F6;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
}

/* CTA Button */
.hibuk-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border: none;
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Heebo', sans-serif;
    box-shadow: 0 10px 30px rgba(100,181,246,0.4);
}

.hibuk-cta-btn:focus {
    outline: 3px solid white;
}

/* QR Card */
.hibuk-qr-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 35px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
}

.hibuk-qr-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.hibuk-qr-user .avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64B5F6 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hibuk-qr-user .info {
    text-align: right;
}

.hibuk-qr-user .info .name {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 22px;
}

.hibuk-qr-user .info .status {
    color: #10B981;
    font-size: 15px;
    font-weight: 600;
}

.hibuk-qr-code {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    background: white;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hibuk-qr-pattern {
    width: 160px;
    height: 160px;
    background: repeating-linear-gradient(0deg, #1a1a2e 0px, #1a1a2e 10px, white 10px, white 20px),
                repeating-linear-gradient(90deg, #1a1a2e 0px, #1a1a2e 10px, white 10px, white 20px);
    background-blend-mode: difference;
    border-radius: 8px;
}

.hibuk-qr-logo {
    position: absolute;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 35px;
}

.hibuk-qr-number {
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
}

.hibuk-status-badge {
    background: rgba(16,185,129,0.2);
    border-radius: 20px;
    padding: 18px 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hibuk-status-badge .dot {
    width: 14px;
    height: 14px;
    background: #10B981;
    border-radius: 50%;
    animation: hibuk-pulse 2s infinite;
}

.hibuk-status-badge span {
    color: #10B981;
    font-weight: 700;
    font-size: 17px;
}

.hibuk-validity {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    margin-top: 30px;
    text-align: center;
}

@keyframes hibuk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hibuk-qr-screen-content {
    text-align: center;
}

.hibuk-qr-screen-content h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hibuk-qr-screen-content > p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin-bottom: 35px;
}

/* Forms */
.hibuk-form-container {
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 20px;
}

.hibuk-form-container h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.hibuk-form-container > p {
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 25px;
}

.hibuk-form-group {
    margin-bottom: 20px;
}

.hibuk-form-group label {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hibuk-form-group label.required::after {
    content: ' *';
    color: #EF4444;
}

.hibuk-form-group input,
.hibuk-form-group select,
.hibuk-form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.hibuk-form-group input:focus,
.hibuk-form-group select:focus,
.hibuk-form-group textarea:focus {
    border-color: #64B5F6;
}

.hibuk-form-group input::placeholder,
.hibuk-form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.hibuk-form-group select {
    cursor: pointer;
}

.hibuk-form-group select option {
    background: #1a1a2e;
    color: white;
}

.hibuk-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.hibuk-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.hibuk-checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #64B5F6;
}

.hibuk-checkbox-group label {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    cursor: pointer;
}

.hibuk-checkbox-group label a {
    color: #64B5F6;
    text-decoration: underline;
    cursor: pointer;
}

.hibuk-form-btn {
    width: 100%;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border: none;
    border-radius: 16px;
    padding: 18px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    margin-top: 10px;
    transition: transform 0.2s;
}

.hibuk-form-btn:hover {
    transform: scale(1.02);
}

.hibuk-form-btn:focus {
    outline: 3px solid white;
}

.hibuk-form-btn.secondary {
    background: rgba(255,255,255,0.1);
    margin-top: 15px;
}

.hibuk-form-btn.danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Success Message */
.hibuk-success-message {
    text-align: center;
    padding: 40px 20px;
}

.hibuk-success-message .emoji {
    font-size: 80px;
    margin-bottom: 20px;
}

.hibuk-success-message h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.hibuk-success-message p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Welcome Buttons */
.hibuk-welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.hibuk-welcome-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    width: 100%;
}

.hibuk-welcome-btn:hover,
.hibuk-welcome-btn:focus {
    background: rgba(255,255,255,0.15);
    border-color: #64B5F6;
    outline: none;
}

.hibuk-welcome-btn .emoji {
    font-size: 40px;
    margin-bottom: 10px;
}

.hibuk-welcome-btn h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.hibuk-welcome-btn p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.hibuk-login-link {
    text-align: center;
    margin-top: 25px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.hibuk-login-link a {
    color: #64B5F6;
    text-decoration: underline;
    cursor: pointer;
}

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

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

.hibuk-modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 30px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.hibuk-modal-content h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.hibuk-modal-content p,
.hibuk-modal-content li {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.hibuk-modal-content ul {
    padding-right: 20px;
    margin-bottom: 20px;
}

.hibuk-modal-close {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    margin-top: 20px;
}

/* Accessibility Button */
.hibuk-accessibility-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hibuk-accessibility-btn:focus {
    outline: 3px solid #64B5F6;
}

.hibuk-accessibility-panel {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(26,26,46,0.98);
    border-radius: 20px;
    padding: 20px;
    z-index: 101;
    min-width: 200px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hibuk-accessibility-panel.active {
    display: block;
}

.hibuk-accessibility-panel h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.hibuk-accessibility-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hibuk-accessibility-option:last-child {
    border-bottom: none;
}

.hibuk-accessibility-option span {
    color: white;
    font-size: 14px;
}

.hibuk-toggle-switch {
    width: 50px;
    height: 26px;
    background: rgba(255,255,255,0.2);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.hibuk-toggle-switch.active {
    background: #64B5F6;
}

.hibuk-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.hibuk-toggle-switch.active::after {
    transform: translateX(24px);
}

/* Unsubscribe */
.hibuk-unsubscribe-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.hibuk-unsubscribe-section p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 15px;
}

.hibuk-unsubscribe-btn {
    background: none;
    border: 1px solid rgba(239,68,68,0.5);
    border-radius: 12px;
    padding: 12px 25px;
    color: #EF4444;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s;
}

.hibuk-unsubscribe-btn:hover {
    background: rgba(239,68,68,0.1);
}

/* Loading */
.hibuk-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hibuk-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #64B5F6;
    border-radius: 50%;
    animation: hibuk-spin 1s linear infinite;
}

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