:root {
    --primary-color: #5a7aff;  
    --secondary-color: #7e57ff;  
    --background-color: #f6f8fc;  
    --text-color: #2c3e50;
    --card-background: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);  
    --border-radius: 16px;  
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overscroll-behavior-y: none;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--background-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transition: background-color var(--transition-speed);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background-color: transparent;
    border: none;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quick-actions {
    padding: 20px 0;
    overflow-x: hidden;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.actions-grid::-webkit-scrollbar {
    display: none;
}

.action-card {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
    scroll-snap-align: start;
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.section-header .see-all {
    color: var(--primary-color);
    font-size: 12px;
    text-decoration: none;  
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.section-header .see-all:hover {
    opacity: 0.7;
}

.category-scroll {
    display: flex;
    gap: 15px;  
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;  
    overscroll-behavior-x: contain;
    cursor: grab;  
    margin-left: 0;
    scroll-padding: 0 20px;
}

.category-scroll::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.5;
    font-size: 20px;
    pointer-events: none;
}

.category-card {
    min-width: 280px;  
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-right: 15px;
}

.category-card:last-child {
    margin-right: 0;
}

.category-card:active {
    cursor: grabbing;
}

.category-card:hover {
    transform: scale(1.02);  
}

.category-card .category-content {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.category-card .category-content:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 42px;  
    color: var(--primary-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-card .category-content:hover .category-icon {
    opacity: 1;
}

.category-details {
    flex-grow: 1;
    overflow: hidden;
}

.category-details h3 {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-details p {
    font-size: 12px;
    color: #777;
}

.recommended-tools {
    padding: 20px 0 100px;
}

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

.tool-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tool-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.tool-details h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.tool-details p {
    font-size: 12px;
    color: #6c757d;
}

.tool-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, rgba(90, 122, 255, 0.8), rgba(126, 87, 255, 0.8));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

@keyframes subtleRaise {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.action-card:hover, .tool-card:hover, .category-card:hover {
    animation: subtleRaise 0.5s ease;
}

.tool-categories .section-header {
    position: relative;
}

.tool-categories .section-header .see-all {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 12px;
    text-decoration: none;  
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1000;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
    transition: color var(--transition-speed);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.language-select {
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
}

@media (min-width: 481px) {
    .app-container {
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

@media (max-width: 380px) {
    .actions-grid {
        grid-template-columns: repeat(4, calc(100% / 4.2));
    }
    
    .action-card {
        min-width: 80px;
        padding: 12px;
    }
}

.coming-soon-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.coming-soon-popup.fade-out {
  animation: fadeOut 0.3s ease;
}

.popup-content {
  background-color: white;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: scale(0.9);
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.popup-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 36px;
  box-shadow: 0 10px 30px rgba(90, 122, 255, 0.4);
}

.popup-content h2 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 20px;
}

.popup-content p {
  color: #6c757d;
  margin-bottom: 25px;
  line-height: 1.5;
}

.popup-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.popup-close, .popup-notify {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.popup-close {
  background-color: #f1f3f5;
  color: var(--text-color);
}

.popup-notify {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.popup-close:hover {
  background-color: #e9ecef;
}

.popup-notify:hover {
  opacity: 0.9;
}

.notification-subscribe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  animation: fadeIn 0.3s ease;
}

.notification-subscribe-modal.fade-out {
  animation: fadeOut 0.3s ease;
}

.notification-subscribe-modal .modal-content {
  background-color: white;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: scale(0.9);
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.notification-subscribe-modal input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.notification-subscribe-modal input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(90, 122, 255, 0.1);
}

.notification-subscribe-modal input.error {
  border-color: #ff6b6b;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-close, .modal-subscribe {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-close {
  background-color: #f1f3f5;
  color: var(--text-color);
}

.modal-subscribe {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

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