/*
 * Shared responsive behavior and motion
 * Cross-page breakpoints, mobile navigation, responsive table cards, compact
 * forms/content, reusable animations, and reduced-motion accessibility.
 */
@keyframes intro-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes visual-intro {
  from { opacity: 0; transform: translateX(35px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes float-card { 50% { transform: translateY(-9px); } }
@keyframes orbit {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(-35px, 25px, 0) rotate(18deg); }
}
@keyframes sticker-pulse {
  0%, 100% { transform: rotate(7deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.055); }
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-8px); }
  70% { transform: translateY(-3px); }
}
@keyframes wallet-pop {
  from { opacity: 0; transform: scale(.5) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}
@keyframes account-status-pulse {
  70% { box-shadow: 0 0 0 7px rgba(223, 240, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(223, 240, 110, 0); }
}
@keyframes account-ring-in {
  from { opacity: 0; transform: scale(.78) rotate(-15deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .site-links { gap: 20px; }
  .site-links > li > a { font-size: .86rem; }
  .help-layout { grid-template-columns: 1fr; }
  .help-side-nav { position: static; }
  .login-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); gap: 28px 45px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .sidenav { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-navigation {
    position: fixed;
    z-index: 101;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    padding: calc(92px + env(safe-area-inset-top)) 28px calc(30px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--ink);
    background: var(--cream);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: visibility .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .site-navigation.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .menu-open .site-header {
    background: var(--cream);
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-links, .account-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-links { width: 100%; margin: auto 0; padding: 12px 0; }
  .site-links > li > a {
    padding: 13px 11px;
    color: var(--ink);
    font: 700 1.35rem/1.3 "Manrope", sans-serif;
    text-align: center;
  }
  .site-links > li > a::after { display: none; }
  .site-cta { width: min(100%, 330px); align-self: center; flex: 0 0 auto; }
  .account-trigger { justify-content: center; }
  .account-trigger { width: min(100%, 330px); margin-inline: auto; }
  .account-name { max-width: 210px; }
  .account-menu { position: relative; z-index: 104; flex: 0 0 auto; }
  .account-menu > .dropdown { position: relative; }
  .account-menu .dropdown-menu {
    position: static;
    width: 100%;
    float: none;
    text-align: center;
    box-shadow: none;
  }
  .account-menu .dropdown.open .dropdown-menu {
    position: absolute;
    z-index: 99999;
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 50%;
    width: min(330px, calc(100vw - 32px));
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    float: none;
    background: #fff;
    box-shadow: 0 18px 48px rgba(32, 33, 63, .18);
    transform: translateX(-50%);
    -webkit-overflow-scrolling: touch;
  }
  .mobileOnly { display: block !important; }
  .login-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "visual" "card";
    max-width: 720px;
  }
  .login-intro { text-align: center; }
  .login-intro .eyebrow, .login-actions, .member-note { justify-content: center; }
  .login-lead { margin-inline: auto; }
  .login-visual { min-height: 390px; margin-top: 20px; }
  .login-card { max-width: 590px; width: 100%; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .impact-grid { grid-template-columns: 1fr; gap: 35px; }
  .dashboard-grid,
  .profile-details-grid,
  .profile-dashboard-grid,
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-welcome-card { grid-template-columns: auto minmax(0, 1fr); }
  .profile-welcome-action { grid-column: 1 / -1; justify-self: start; }
  .account-panel-body { grid-template-columns: 145px minmax(0, 1fr); gap: 24px; }
  .account-ring { width: 140px; height: 140px; }
  .login-page .hero { min-height: auto; padding-top: 125px; }
  .about-grid,
  .login-page .hero-grid { grid-template-columns: 1fr; }
  .about-content { text-align: center; }
  .about-content .about-copy { margin-inline: auto; }
  .about-visual { width: min(600px, 92%); margin: 0 auto; }
  .login-page .hero-content { text-align: center; }
  .login-page .hero-copy { margin-inline: auto; }
  .login-page .hero-actions, .login-page .hero-note { justify-content: center; }
  .login-page .hero-visual { width: min(600px, 92%); margin: 0 auto; }
  .login-page .steps { grid-template-columns: 1fr; }
  .login-page .step { min-height: 280px; }
  .login-page .impact-grid { grid-template-columns: 1fr; }
  .login-page .join-card { grid-template-columns: 1fr; }
  .login-page .join-copy,
  .login-page .join .login-card {
    grid-column: 1;
    grid-row: auto;
  }
  .login-page .join .login-card { width: min(500px, 100%); }
  .login-page .opinion-game-layout { grid-template-columns: 1fr; gap: 36px; }
  .login-page .opinion-game-intro { text-align: center; }
  .login-page .opinion-game-intro h2,
  .login-page .opinion-game-intro > p:not(.eyebrow) { margin-inline: auto; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px, 1180px); }
  .content-container,
  .profile-layout,
  .profile-content,
  .profile-content > *,
  .home-dashboard,
  .home-page-grid,
  .home-card { min-width: 0; max-width: 100%; }
  .profile-content img,
  .profile-content video,
  .profile-content iframe,
  .main-content img,
  .main-content video,
  .main-content iframe { max-width: 100%; }
  .profile-content pre,
  .main-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .btn { max-width: 100%; white-space: normal; }
  input, select, textarea { max-width: 100%; }
  .rewards-head { display: block; padding: 20px; }
  .rewards-tabs { width: 100%; margin-top: 16px; }
  .rewards-tab { flex: 1; }
  .rewards-tab-panel { padding: 0 12px 18px; }
  .invite-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 18px;
  }
  .invite-form-note {
    width: 100%;
    margin: 0;
  }
  .invite-form-actions .btn { width: 100%; }
  .site-nav { min-height: 72px; }
  .site-brand { width: 124px; flex-basis: 124px; }
  .main-content { padding: 104px 0 50px; }
  .help-hero { padding-top: 18px; }
  .help-hero > p:last-child { font-size: 1.18rem; }
  .help-topic-links { padding-bottom: 30px; }
  .help-topic-links a { font-size: 1rem; }
  .help-side-nav { padding: 18px; }
  .help-section-heading { flex-direction: column; padding: 23px 20px; }
  .help-section-heading h2 { font-size: 2.15rem; }
  .help-section-heading p { font-size: 1.12rem; }
  .help-accordion { padding: 8px; }
  .help-accordion details { margin: 8px; }
  .help-accordion summary { padding: 18px; font-size: 1.18rem; }
  .help-answer { padding: 0 18px 18px; }
  .help-answer p, .help-answer li { font-size: 1.08rem; }
  .help-contact { padding: 24px 20px; }
  .help-contact h2 { font-size: 2.15rem; }
  .help-contact p { font-size: 1.12rem; }
  .feedback { margin-top: 72px; }
  .row { margin-left: -7px; margin-right: -7px; }
  [class*="col-"] { padding-left: 7px; padding-right: 7px; }
  .form-horizontal .control-label { padding-top: 0; }
  .panel-heading, .box-header { padding: 18px; }
  .panel-body, .box-body { padding: 18px; }
  .table-responsive { overflow-x: auto; }
  .table { min-width: 610px; }
  .responsive-table-panel {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .responsive-table-panel > .panel-heading {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .responsive-table-panel > .panel-footer {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .responsive-card-table,
  .responsive-card-table thead,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td { display: block; width: 100%; }
  .responsive-card-table {
    min-width: 0 !important;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    background: transparent;
  }
  .responsive-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .responsive-card-table tbody { display: grid; gap: 12px; padding: 12px; background: #f7f5f4; }
  .responsive-card-table > tbody > tr {
    overflow: visible;
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(32, 33, 63, .06);
  }
  .responsive-card-table > tbody > tr > td {
    display: grid;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .responsive-card-table > tbody > tr > td:first-child { border-top: 0; }
  .responsive-card-table > tbody > tr > td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .reward_table .dropdown,
  .reward_table .dropdown-toggle { width: 100%; }
  .reward_table td[data-label="Kam poslat"] .btn { width: 100%; }
  .reward_table .dropdown.open .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    float: none;
    box-shadow: 0 10px 24px rgba(32, 33, 63, .12);
  }
  .profile-content .panel > .table:not(.responsive-card-table),
  .profile-content .box > .table:not(.responsive-card-table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .profile-content .panel > .responsive-card-table,
  .profile-content .box > .responsive-card-table { overflow: visible; white-space: normal; }
  .rewards-table-wrap,
  .profile-rewards-table-wrap,
  .home-table-wrap {
    width: 100%;
    margin: 14px 0 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .profile-rewards-table-wrap { padding: 0 16px 18px; }
  .home-table-wrap .responsive-card-table tbody { padding: 0; background: transparent; }
  .home-tab-panel .extra-row,
  .home-all-surveys .extra-row { display: none; }
  .home-tab-panel.expanded .extra-row,
  .home-all-surveys.expanded .extra-row { display: block; }
  .home-rewards-table .dropdown,
  .home-rewards-table .home-send-select { width: 100%; }
  .home-rewards-table .dropdown.open .dropdown-menu,
  .profile-rewards-table .dropdown.open .dropdown-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 8px;
    float: none;
  }
  .profile-rewards-table .dropdown,
  .profile-rewards-table .profile-destination-button { width: 100%; }
  .profile-rewards-table .profile-destination-label {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .home-rewards-table .dropdown-menu > li > a,
  .profile-rewards-table .dropdown-menu > li > a {
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding-block: 9px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
  }
  .profile-content > .btn { margin: 0 8px 10px 0; }
  .profile-content .pull-right { float: none !important; display: inline-block; margin-top: 10px; }
  .profile-content .form-horizontal .form-group { margin-right: 0; margin-left: 0; }
  .profile-content .form-horizontal [class*="col-"] { width: 100%; }
  .profile-content .form-horizontal .control-label { text-align: left; }
  .profile-rewards-head { align-items: flex-start; flex-direction: column; }
  .profile-rewards-tabs { width: 100%; }
  .profile-reward-tab { flex: 1; }
  .profile-rewards-balance { align-items: flex-start; flex-direction: column; }
  .profile-rewards-table-wrap { margin: 16px 0 0; }
  .profile-data-list { margin: 18px; }
  .profile-welcome-card { padding: 22px; }
  .chat .item .message { min-width: 0; overflow-wrap: anywhere; }
  .chat .item .name .pull-right { display: block; float: none !important; margin: 4px 0 0; }
  #wp-content, #wp-content img, #wp-content iframe { max-width: 100%; }
  #wp-content iframe { height: auto; aspect-ratio: 16 / 9; }
  .account-panel-header { align-items: flex-start; flex-direction: column; }
  .account-panel-body { grid-template-columns: 1fr; }
  .account-ring { margin-inline: auto; }
  .account-panel-details { text-align: center; }
  .account-progress-track { max-width: 340px; margin-inline: auto; }
  .account-panel-summary { text-align: left; }
  .account-panel-actions { justify-content: center; }
  .dl-horizontal dt { margin-top: 12px; }
  .dl-horizontal dd { margin-left: 0; }
  .login-hero { padding: 112px 0 62px; }
  .login-intro h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .login-lead { font-size: 1rem; }
  .login-visual { min-height: 315px; }
  .visual-note { min-width: 188px; }
  .visual-note-survey { left: -4px; }
  .visual-note-reward { right: -3px; }
  .trust-row { flex-direction: column; align-items: flex-start; }
  .trust-points { justify-content: flex-start; }
  .how-section { padding: 76px 0; }
  .section-heading { margin-bottom: 34px; }
  .impact-stats { grid-template-columns: 1fr; }
  .impact-stats > div { display: grid; grid-template-columns: 35px 1fr; padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .13); }
  .impact-stats i { grid-row: span 2; margin: 4px 0 0; }
  .impact-stats span { margin-top: 3px; }
  .global-stats-grid, .circles { grid-template-columns: 1fr; }
  .global-stat { padding: 24px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .footer { padding-top: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-column { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .login-page .hero { padding: 106px 0 60px; }
  .about-content h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  
  .about-visual { min-height: 420px; width: 100%; }
  .about-visual .photo-card { inset: 12px 0 0; border-radius: 26px 75px 26px 26px; }
  .about-visual .reward-card { left: 10px; bottom: 20px; }
  .about-visual .survey-card { top: 0; right: -4px; }
  .about-visual .floating-card { padding: 11px 13px; }
  .about-sticker { display: none; }
  .login-page .hero::before { display: none; }
  .login-page .hero-content h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .login-page .hero-content h1 em { white-space: normal; }
  .login-page .hero-copy { font-size: 1rem; }
  .login-page .hero-actions .btn { width: 100%; }
  .login-page .hero-visual { min-height: 420px; width: 100%; }
  .login-page .photo-card { inset: 12px 0 0; border-radius: 26px 75px 26px 26px; }
  .login-page .reward-card { left: 10px; bottom: 20px; }
  .login-page .survey-card { top: 0; right: -4px; }
  .login-page .floating-card { padding: 11px 13px; }
  .login-page .hero-sticker { display: none; }
  .login-page .how, .login-page .join { padding: 84px 0; }
  .login-page .section-head { margin-bottom: 38px; }
  .login-page .step { padding: 25px; }
  .login-page .impact { padding: 82px 0; }
  .login-page .impact-grid { gap: 38px; }
  .login-page .stats { grid-template-columns: 1fr; }
  .login-page .stat { min-height: 145px; }
  .login-page .stat strong { margin-top: 18px; }
  .login-page .join-card { padding: 34px 20px 20px; border-radius: 28px; }
  .login-page .join .login-card { padding: 23px 18px; }
  .login-page .opinion-game { padding: 76px 0; }
  .opinion-game-board { min-height: 0; padding: 25px 18px; }
  .opinion-game-option { min-height: 58px; }
  .opinion-game-verdict-icon { width: 44px; height: 44px; }
  .login-page .login-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .login-page .login-footer-bottom { flex-direction: column; }

  .dont-show-on-mobile{ display: none;}
  .trust-row{ align-items: center;}
  .stats .stat{ text-align: center;}
}

@media (max-width: 520px) {
  .responsive-card-table > tbody > tr > td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-modal { align-items: end; padding: 10px; }
  .contact-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 28px 18px 20px;
    border-radius: 26px;
  }
  .contact-modal-header { padding-right: 30px; }
  .contact-modal-header h2 { font-size: 2.25rem; }
  .contact-modal-header > p:last-child { font-size: 1rem; }
  .contact-fields-row { grid-template-columns: 1fr; gap: 0; }
  .contact-captcha .form-control { width: 100%; }
  .contact-modal-actions { flex-direction: column; }
  .contact-modal-actions .btn { width: 100%; }
  .login-actions { flex-direction: column; }
  .login-actions .btn { width: 100%; }
  .login-visual { min-height: 270px; }
  .visual-note { display: none; }
  .login-card { padding: 22px 18px; }
  .login-modal {
    align-items: start;
    padding: 12px;
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .login-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  }
  .login-modal .login-card { padding: 29px 20px 22px; }
  .login-meta { align-items: flex-start; }
  .sidenav, .footer-grid { grid-template-columns: 1fr; }
  .profile-metrics-grid { grid-template-columns: 1fr; }
  .footer-brand-column { grid-column: auto; }
  .home-dashboard-page .content-container { width: min(100% - 20px, 1280px); }
  .home-card { border-radius: 18px; }
  .home-invite-card { padding: 18px; }
  .home-invite-icon { width: 58px; height: 58px; border-radius: 16px; }
  .home-invite-copy h1 { font-size: 24px; }
  .home-card-header { padding: 18px 16px 0; }
  .home-card-body { padding: 14px 16px 18px; }
  .home-balance-panel { padding: 16px; }
  .home-balance-chip { width: 100%; padding: 10px 12px; white-space: normal; }
  .home-tabs-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tab-btn { width: 100%; padding-inline: 8px; }
  .home-dashboard .btn,
  .home-survey-actions .btn,
  .home-empty-state .btn { width: 100%; }
  .home-fb-frame { min-height: 430px; }
  .profile-welcome-card { grid-template-columns: 1fr; }
  .profile-welcome-action { width: 100%; }
  .profile-info-head { align-items: flex-start; flex-direction: column; }
  .profile-data-list > div { grid-template-columns: 1fr; gap: 4px; }
  .profile-rewards-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-reward-tab { width: 100%; padding-inline: 8px; }
  .profile-balance-chip { max-width: 100%; white-space: normal; }
  .profile-settings-form .profile-choice-list { display: grid; grid-template-columns: 1fr; }
  .profile-settings-form .profile-choice-list .checkbox,
  .profile-settings-form .profile-choice-list .radio,
  .profile-settings-form .profile-choice-list label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1000ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1000ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .help-page *,
  .help-page *::before,
  .help-page *::after { animation: none !important; transition: none !important; }
  .contact-modal,
  .contact-modal-dialog { transition: none !important; }
}
.login-modal{
    animation-duration: 200ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 200ms !important;
}

.login-page .stat strong span {
    font-size: unset;
    color: white;
}


.info-content p{
  font-size: 1.5rem!important;
}

.logo-propaganda{
  text-align: center;
}
.logo-propaganda img{
  width: 250px;
}
